-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.10, 3.7.6, 3.8.3, 3.9
-
MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MDL-69165-master -
This is something that was missed when MDL-65029 was done. The id constructed here: https://github.com/moodle/moodle/blob/c11e2517a77b94c844d88e45b61af4305bbc1cf6/question/qengine.js#L133 is no longer right.
Also, there is no point adding this fragment at the end of the URL in the case where there is only one question rendered in the form - which is always the case in StudentQuiz, where one of our users noticed and said it was ugly. We can detect that there is one qusetion in the form either by looking at the slots hidden input, which is a comma-separated list of stot ids, or, perhpas better, counting the number of div.que in the form.
Note, this is only code which needs to be cleaned up on master, so I created MDL-69164 for that. however, this bug needs to be fixed on all stables first.