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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: DEV backlog
    • Component/s: Questions
    • Labels:
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              timhunt Tim Hunt
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: