-
Bug
-
Resolution: Fixed
-
Major
-
2.4.5, 2.5
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
There's a bug when a "form error" occurs on editing/adding a quiz.
if you select the question behavior type of "interactive with multiple tries"
The during attempt options are un-disabled and a user can select some of those options.
If you make a form error, like no quiz name, or duplicate ID number, and save the form, the form reloads, and then the "During the attempt" under review options, those form options are disabled, even though "The attempt" checkbox is checked.
I'd expect those to be unchecked due to the question behavior type chosen, and because "The attempt" is checked.
After going through some of the mod_form.php file for the quiz module, the rules are added for each of those option groups, and then "The attempt" and "overall feedback" are always disabled for "During the attempt" section.
It seems like the javascript that does the disabling can't read the already disabled "The attempt" checkbox and so therefore disables the other form elements.
You could add a conditional in php to remove those rules for "During the attempt" section, or would that be something to fix in javascript?