-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
After upgrading an instance to version 5.0 (main) that contains a quiz with at least one question, the question settings become inaccessible due to the following error if the transfer_question_categories task has not been executed:
Ideally, this scenario should be handled more effectively by displaying a notice informing the user that the transfer_question_categories task needs to be executed, similar to the notification seen on the course question bank page, rather than showing an error message.
Steps to reproduce:
- Create a Moodle 4.5 instance
- Create a course.
- Create a quiz activity in the course.
- In the quiz, add one question of your choice (e.g. true/false question).
- Upgrade to 5.0 (main).
- Make sure you haven't run the mod_qbank\task\transfer_question_categories ad-hoc task.
- Go back to the quiz in the course.
- In the quiz, go to Questions.
- Click on the pencil icon next to the question to go to the settings (edit) page of the question.
- Expected: You should see a notice informing that the transfer_question_categories task needs to be executed.
- Actual: An error is shown which prevents access to the question settings.