MDL-54802 mod_quiz: Add validation to require passing grade greater than 0

This commit adds a form validation to prevent the creation of quizzes
using zero or null grade to pass when using require passing grade.
This commit is contained in:
Simey Lameze 2016-09-21 16:09:25 +08:00
parent 1f2744851f
commit 981356b23d
4 changed files with 34 additions and 1 deletions

View file

@ -396,6 +396,7 @@ $string['grademethod_help'] = 'When multiple attempts are allowed, the following
* Last attempt (all other attempts are ignored)';
$string['gradesdeleted'] = 'Quiz grades deleted';
$string['gradesofar'] = '{$a->method}: {$a->mygrade} / {$a->quizgrade}.';
$string['gradetopassnotset'] = 'This quiz does not have a grade to pass set so you cannot use this option. Please use the require grade setting instead.';
$string['gradingdetails'] = 'Marks for this submission: {$a->raw}/{$a->max}.';
$string['gradingdetailsadjustment'] = 'With previous penalties this gives <strong>{$a->cur}/{$a->max}</strong>.';
$string['gradingdetailspenalty'] = 'This submission attracted a penalty of {$a}.';