Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Seems quiz_question_answering_form has changed, now there are two buttons #edit-submit and #edit-navigation-submit-hidden.
Therefore the condition (buttons.length == 1) always evaluates False.
Even the time is out user stay on the same question form page.
In quiz_take_question function :
function finished() {
// Find all buttons with a name of 'op'.
var buttons = jQuery('input[type=submit][name=op], button[type=submit][name=op]');
// Filter out the ones that don't have the right op value.
buttons = buttons.filter(function() {
return this.value == $button_op1 || this.value == $button_op2;
});
if (buttons.length == 1) {
// Since only one button was found, this must be it.
buttons.click();
}
else {
// Zero, or more than one buttons were found; fall back on a page refresh.
window.location = window.location.href;
}
}
Comments
Comment #2
djdevinI believe this is the same issue as #2860035: Quiz take page does not finalize quiz when countdown time limit reached