-
Bug
-
Resolution: Fixed
-
Critical
-
3.5, 3.6, 3.7
-
MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-63809-master-5 -
If there is a bad question (for example a multichoice question with no option in the qtype_multichoice_options table) in the DB, when you try to add a question from the bank Moodle throws a JS error and in the logs there is an sql error record not found.
This is the same problem as MDL-62811, but it is showing itself in other places as well.
To reproduce:
- Create a new multiple choice question.
- In the database, delete the newly added row in qtype_multichoice_options.
- Create a quiz
- Go to the quiz edit questions page
- click on add -> from question bank