mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
SCORM MDL-21568 attempts grading initialized incorrectly.
This commit is contained in:
parent
dd64051e9e
commit
adefe70e22
@ -255,8 +255,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
}
|
||||
}
|
||||
if (isset($default_values['grademethod'])) {
|
||||
$default_values['whatgrade'] = intval($default_values['grademethod'] / 10);
|
||||
$default_values['grademethod'] = $default_values['grademethod'] % 10;
|
||||
$default_values['grademethod'] = intval($default_values['grademethod']);
|
||||
}
|
||||
if (isset($default_value['width']) && (strpos($default_value['width'],'%') === false) && ($default_value['width'] <= 100)) {
|
||||
$default_value['width'] .= '%';
|
||||
|
Loading…
x
Reference in New Issue
Block a user