mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
MDL-56617 mod_quiz: No grade to pass check if CBM used
When certainty-based marking is used, grades can 'exceed' the maximum grade (because they are multiplied by factors). Therefore, in such cases, don't show no warning.
This commit is contained in:
parent
590292d48e
commit
16302f85ec
@ -596,6 +596,10 @@ class mod_quiz_mod_form extends moodleform_mod {
|
||||
}
|
||||
}
|
||||
|
||||
// If CBM is involved, don't show the warning for grade to pass being larger than the maximum grade.
|
||||
if (($data['preferredbehaviour'] == 'deferredcbm') OR ($data['preferredbehaviour'] == 'immediatecbm')) {
|
||||
unset($errors['gradepass']);
|
||||
}
|
||||
// Any other rule plugins.
|
||||
$errors = quiz_access_manager::validate_settings_form_fields($errors, $data, $files, $this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user