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

Section navigation does not display correct next/prev links for subsections

XMLWordPrintable

    • MOODLE_405_STABLE, MOODLE_501_STABLE

      NOTE: Using Boost Union theme to view section navigation, but the issue is expected to occur in any theme that uses section navigation.

      When reordering subsection, the section navigation within the subsection view does not update.

      Steps to reproduce:

      1. On the course page, turn on edit mode and create a new section.
      2. Create several subsections within that section, giving them sequential names (e.g., Subsection 1, Subsection 2, etc.)
      3. Turn off edit mode.
      4. Navigate into the any of the new subsections and confirm that the subsection navigation progresses in the correct order.
      5. Go back to the main course page and turn on edit mode.
      6. Rearrange the order of the subsections and turn off edit mode.
      7. Navigate back into any subsection. The subsection navigation will still display the previous order. If there is a jump menu, the subsection order in it will also be incorrect.

      Additional Notes:

      • Section navigation uses the "section" field of mdl_course_sections (which updates when sections are reordered) to determine the order, but subsections use the array in the parent section's "sequence" field to determine the subsection order.
      • The class 'sectionnavigation' (course/format/classes/output/local/content/sectionnavigation.php) is being used in the same manner for both sections and subsections, but sections and subsections each handle ordering differently and 'sectionnavigation' doesn't distinguish between the two.
      • Comment on line 85 of course/format/classes/output/local/content/sectionnavigation.php acknowleges the issue and says the navigation API should be used instead.

        1. subsection_jump_menu_navigation.png
          68 kB
          Alan McCoy
        2. subsection_navigation.png
          17 kB
          Alan McCoy
        3. reordered_subsections.png
          34 kB
          Alan McCoy

            Unassigned Unassigned
            alanrmccoy Alan McCoy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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