Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.5.8
-
MOODLE_35_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
bugfix-
MDL-67142 -
Easy
-
Description
When deleting a quiz, if some of the questions should be saved and the quiz name is very long, the database will error when attempting to create the new category for the saved questions. I believe that this is because it is prepended with the string:
"Questions saved from context {quiz name}".
If the quiz name was approaching the database field, then the additional "Questions saved..." string will push it over and cause an error, stopping the ad hoc task from completing.
This appears to be happening in lib/questionlib.php:500.