forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-83977 qbank: Migrate unused question categories
Previously, question categories which contained only questions with no usages were deleted during migration to mod_qbank. The intention is that hidden questions with no usages should be deleted, then any categories which are now empty should be deleted rather than migrated. The case of questions in non-hidden states with no usages was not covered in the unit tests, and these were being deleted too. This change will specifically check if a category is empty, rather than checking question usage, before deletion.
- Loading branch information
1 parent
0888a6d
commit ea34a33
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters