Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82679

Collapsable sections can conflict, and trigger each other

XMLWordPrintable

      Because section collapsing is done by section number, not ID, and section numbers can change, it's possible for two sections to end up with the same number for collapsing purposes, and conflict.

      I think it would be easy enough to fix.  Just replace coursecontentcollapse{{num}} and collapssesection{{num}} with coursecontentcollapse{{id}} and collapssesection{{id}} .  The only issue would be how to identify the resulting HTML elements for Behat testing.

            james-cnz James E. Calder
            james-cnz James E. Calder
            Sumaiya Javed Sumaiya Javed
            Ferran Recio Ferran Recio
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 1 hour, 20 minutes
                2d 1h 20m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.