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

A better way to preserve the current category in the question bank navigation

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.1
    • Questions
    • MOODLE_21_STABLE

      This follows on from MDL-26199.

      The goal is for the links in the navigation from one part of the question bank to another to preserve the current category.

      At the moment, it finds the current category just by looking for a parm 'cat' in $PAGE->url that looks like 123,456. (Fortunately this is quite distinctive!) However, if, in future, something else used a parameter called cat that was two comma-separated integers, then this would go wrong.

      Sam Hemelryk suggested a better approach, a new function something like:

      question_preserve_state_in_settings_navigation($currentcat) {
          // Add extra URL parameters to the qbank navigation notes.
      }

      This is definitely better, but will have to wait until after 2.1 is released.

            Unassigned Unassigned
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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