Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11087

JSI fails if dynamically including multiple components on same page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Dynamic Include 3.3.0
    • Dynamic Include 3.3.2
    • Extensions
    • None
    • Patch

    Description

      Using Javascript Includes (JSI) in Sling Dynamic Include 3.3.0 on a page with two or more components to be fetched through AJAX will show one component multiple times.

      This occurs due to the keyword "var" being used in the javascript template, rather than the keyword "let". The difference is whether it is a variable with global scope or local scope.

      Attachments

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              jar-miracle Jakob Rosenlund
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h