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

Collapse/expand all toggler isn't updated correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.5.5, 5.0.1
    • 4.3.8
    • Course

      In current Moodle versions, deleting a section can lead to a situation where all remaining sections have the same collapse state, and the collapse/expand toggler should be updated.

      Additionally, in Moodle 4.5, section pages don't display the collapse/expand toggler at all, even though the page could contain collapsible subsections.

      This is fixed as part of MDL-83233, but perhaps should be done as a separate issue.

      I don't think the call to _refreshAllSectionsToggler() is necessary for core in _reloadSection() (on the main branch).  I don't think it does any harm, though, and it would help make it possible for my course format (and possibly others?) to use reactive AJAX add section without breaking the all-section toggler.

      This second reported behaviour will be tacled in MDL-81768

        1. image-2024-11-11-14-47-55-721.png
          28 kB
          Laurent David
        2. image-2024-11-11-14-49-12-403.png
          30 kB
          Laurent David
        3. image-2024-11-13-10-50-15-875.png
          30 kB
          Laurent David
        4. MDL-83262.png
          444 kB
          Ron Carl Alfon Yu

            james-cnz James E. Calder
            james-cnz James E. Calder
            Laurent David Laurent David
            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 - 4 hours, 8 minutes
                4h 8m

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