Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.4.2, 2.4.3
-
Component/s: Quiz
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_24_STABLE
-
Fixed Branches:MOODLE_24_STABLE, MOODLE_25_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
When there is no attempt left, it shows the "No more attempts are allowed" message twice
1) the message comes form the function:
public function view_best_score($viewobj) {
$output = '';
// Print information about the student's best score for this quiz if possible.
if (!$viewobj->moreattempts)
return $output;
}
in mod/quiz/renderer.php which is called in view_page in the same class/ same file.
The same message is generated from prevent_new_attempt() method in quizaccess_numattempts class (mod/quiz/accessrule/numattempts/rule.php)