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

Question bank filteroptions 'show questions from subcategories': value not updated on page reload

XMLWordPrintable

      In question bank question categories filter, the option 'show questions from subcategories' is a checkbox that can be checked or unchecked.
      Once checked, the questions query include al questions in subcategories, and that works fine.

      This is related to MDL-82542

      Problem

      On page reload, or after adding anew questions and returning to the bank view, the filter options are active and used in the page. The list of questions shown include those in subcategories. But the filter checkbox in UNmarked, although the page filter has includesubcategories=true on pagevars and url.

      If you use the "apply filter" button, then since the checkbox is unchecked the filter only retrieves questions in the selected category, not including subcategories. You have to re-check to keep it in operation. Even when the page loads with the filteroption set as true.

      When the code is modified and the filteroption is set as ON, true, by default, then the question bank view page load with the includesubcategories option checked on default. But again, if you uncheck it, apply the filter, and reload it appears checked when the filter is really being applied without including subcategories.
      It really seems that the status of the checkbox is NOT being updated by reading the value of the filteroption property includesubcategories in the pagevars.

            marxjohnson Mark Johnson
            ecastro Enrique Castro
            CMR CMR
            Tim Hunt Tim Hunt
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 29 minutes
                29m

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