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

Content collapse state occasionally lost

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77329-401-clr
    • mdl-77329-master-clr
    • Hide
      1. Login admin and go to "Site administration -> Development -> Debugging" and set "Debug messages" to "DEVELOPER" level.
      2. Create a course in Topics format with at least ten topics.
      3. Go to the course and note down the course ID from the URL (you will need in a later step).
      4. Click on "Collapse all" to collapse all sections.
      5. Collapse all sections from the course index.
      6. Refresh the page.
      7. Open the browser console (usually F12).
      8. Execute the following commands replacing COURSEID by the course ID you note down earlier:

          M.reactive.CourseEditorCOURSEID.dispatch('sectionContentCollapsed', [M.reactive.CourseEditorCOURSEID.stateData.section['1']], true);
          M.reactive.CourseEditorCOURSEID.dispatch('sectionIndexCollapsed', [M.reactive.CourseEditorCOURSEID.stateData.section['1']], true);
        

      9. Refresh the page after a few seconds.
      10. Check that all sections are still collapsed in both course index and course content.
      Show
      Login admin and go to "Site administration -> Development -> Debugging" and set "Debug messages" to "DEVELOPER" level. Create a course in Topics format with at least ten topics. Go to the course and note down the course ID from the URL (you will need in a later step). Click on "Collapse all" to collapse all sections. Collapse all sections from the course index. Refresh the page. Open the browser console (usually F12). Execute the following commands replacing COURSEID by the course ID you note down earlier:   M.reactive.CourseEditorCOURSEID.dispatch('sectionContentCollapsed', [M.reactive.CourseEditorCOURSEID.stateData.section['1']], true);   M.reactive.CourseEditorCOURSEID.dispatch('sectionIndexCollapsed', [M.reactive.CourseEditorCOURSEID.stateData.section['1']], true); Refresh the page after a few seconds. Check that all sections are still collapsed in both course index and course content.

      Sometimes, if a section's expand/collapse chevron is clicked while the page is still loading, the collapse state for all sections will be lost, and all sections will become expanded.

            james-cnz James E. Calder
            james-cnz James E. Calder
            Dan Marsden Dan Marsden
            Ferran Recio Ferran Recio
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 15 minutes
                4h 15m

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