-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.4
When exporting Questions from a Category via Moodle XML Format, Hidden Questions are also exported, Despite the category count reflecting only visible questions.
To reproduce the bug
- Create a category in the question bank.
- Add at least two questions to the category you’ve created. Your category should then show the count as 2.
- Create a quiz and add those two questions from your category.
- Return to the question bank, confirm that your question category still shows 2 questions. Try to delete one of the questions. The system will show you a message indicating that instead of completely deleting the question, it will be hidden. Click "Delete."
- In the question bank, with your category selected, change the filters to show hidden questions. Confirm that you can see one question visible and the other is hidden (greyed out). The category count should show 1.
- Export questions from your category using the Moodle XML format. After it’s completed, open the exported file, which should contain two questions, both with <hidden>0</hidden> (indicating not hidden).
In the exported file, both questions have <hidden>0</hidden>, which means they are set to visible. However, the one question is actually a hidden question in the system.
The issue arises because users exporting the questions may not be aware that the category contains hidden questions.
- is a regression caused by
-
MDL-71696 Add question versions
-
- Closed
-