From 5bbf20b48d1a7a88da0f59646853a921319b2c67 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 22 Jul 2008 11:01:56 +0000 Subject: [PATCH] Error with submitting quizzes - regression caused by MDL-15542. --- mod/quiz/accessrules.php | 6 ++++-- mod/quiz/processattempt.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mod/quiz/accessrules.php b/mod/quiz/accessrules.php index 82a8e40ee1..0c91c6d3f4 100644 --- a/mod/quiz/accessrules.php +++ b/mod/quiz/accessrules.php @@ -631,11 +631,13 @@ class password_access_rule extends quiz_access_rule_base { /// Print the password entry form. $output .= '

' . get_string('requirepasswordmessage', 'quiz') . "

\n"; $output .= '
' . "\n"; + '/mod/quiz/startattempt.php" onclick="this.autocomplete=\'off\'">' . "\n"; $output .= "
\n"; $output .= '\n"; $output .= '' . "\n"; + $output .= '' . "\n"; + $output .= '' . "\n"; $output .= ''; $output .= '' . "\n"; diff --git a/mod/quiz/processattempt.php b/mod/quiz/processattempt.php index bf86e505c1..f82383a04d 100644 --- a/mod/quiz/processattempt.php +++ b/mod/quiz/processattempt.php @@ -51,7 +51,7 @@ if (optional_param('gotosummary', false, PARAM_BOOL)) { if ($nextpage == -1) { $nexturl = $attemptobj->summary_url(); } else { - $nexturl = $attemptobj->attempt_url($nextpage); + $nexturl = $attemptobj->attempt_url(0, $nextpage); } /// We treat automatically closed attempts just like normally closed attempts -- 2.39.5