-
Bug
-
Resolution: Fixed
-
Minor
-
4.3 regressions, 4.4, 4.5
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.
- has been marked as being related by
-
MDL-73146 Introduce a proper API for the question bank so other plugins don't need to directly reference qbank_ plugins
-
- Open
-