-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
If a question bank category containing questions is about to removed (e.g. there is one question with 2 versions), the shown count could show an unexpected number stating "The category 'Category A' contains 2 questions (some of which may be hidden questions or random questions that are still in use in a quiz). Please choose another category to move them to.".
One would probably expect
The category 'Category A' contains 1 question with 2 versions (some of which may be hidden questions or random questions that are still in use in a quiz). Please choose another category to move them to.
TO REPRODUCE:
- In a course, create a question bank.
- In that question bank, create a second question category, 'Category A'.
- In that category, 'Category A', create a question.
- Edit the question in that category, 'Category A', and save it which creates a version 2, 'v2'.
- In that question bank, return to 'Categories'.
- For category 'Category A (1)' select the "Delete" action.
- The prompt 'Delete category "Category A"?. Any child categories will be moved to this category's parent.' appears, approve by pushing the 'Delete' button.
- You are shown 'The category 'Category A' contains 2 questions (some of which may be hidden questions or random questions that are still in use in a quiz). Please choose another category to move them to.'