-
Bug
-
Resolution: Fixed
-
Minor
-
1.9.13
-
Any
-
MOODLE_19_STABLE
-
MOODLE_19_STABLE
-
I realize this is an edge case scenario but we had to address it here due to repeated run-ins with it.
If a Lesson creator Adds a new Question Page with a MultipleChoice question (the default question type when creating a new question) and clicks save without adding any answers, they will get an incorrect error if they then choose to go back, edit that question, and save it as an essay.
The error they get is "Update page: EOB not updated". This is not correct. The page updates correctly. The code assumes that it wasn't because update_record() returns false. It returns false because its being told to update a record with and id of 0.
Testing instructions and forthcoming patch will give more explanation.