-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
How to reproduce
1. In a Moodle course, create a question bank
2. In the question bank, create a category (colors)
3. In the question bank, create a subcategory of the category colors (subcategory colors)
4. Add 4 questions to each category
The question bank category page now looks like this
5. Delete the category colors. You will receive the following dialog
6. Confirm that you want to delete. You will receive the following dialog
Problem
The dialog speaks of 5 questions. The category color only contains 4 questions and 1 subcategory (with 4 questions). Obviously the subcategory is counted as question, which is incorrect.
Expected behaviour
The dialog in step 6 correctly lists the amount of questions and subcategories. In this case the dialog would state "The category 'colors' contains 4 questions and one subcategory 'colors subcategory' containing 4 questions".