MDL-70935 mod_quiz: Missing completionminattempts rule description
The mod_quiz_get_completion_active_rule_descriptions() function was not returning the description for the 'completionminattempts' rule. Added that.
This commit is contained in:
committed by
Michael Hawkins
parent
d938c0f299
commit
1ef67caf2c
@@ -180,6 +180,7 @@ $string['commentorgrade'] = 'Make comment or override grade';
|
||||
$string['comments'] = 'Comments';
|
||||
$string['completedon'] = 'Completed on';
|
||||
$string['completionminattempts'] = 'Minimum number of attempts:';
|
||||
$string['completionminattemptsdesc'] = 'Minimum number of attempts required: {$a}';
|
||||
$string['completionminattemptsgroup'] = 'Require attempts';
|
||||
$string['completionminattemptserror'] = 'Minimum number of attempts must be lower or equal to attempts allowed.';
|
||||
$string['completionpass'] = 'Require passing grade';
|
||||
|
||||
@@ -2222,6 +2222,11 @@ function mod_quiz_get_completion_active_rule_descriptions($cm) {
|
||||
$descriptions[] = get_string('completionpassdesc', 'quiz', format_time($val));
|
||||
}
|
||||
break;
|
||||
case 'completionminattempts':
|
||||
if (!empty($val)) {
|
||||
$descriptions[] = get_string('completionminattemptsdesc', 'quiz', $val);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user