Skip to content

Commit

Permalink
Merge branch 'MDL-77779-403' of https://github.com/ilyatregubov/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_403_STABLE
  • Loading branch information
HuongNV13 committed Apr 3, 2024
2 parents 7c9a625 + 293ccf1 commit fbf4d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/moodle2/restore_stepslib.php
Expand Up @@ -3793,7 +3793,7 @@ public function process_course_module_competency($data) {
// Sortorder is ignored by precaution, anyway we should walk through the records in the right order.
$record = (object) $params;
$record->ruleoutcome = $data->ruleoutcome;
$record->overridegrade = $data->overridegrade;
$record->overridegrade = $data->overridegrade ?? 0;
$coursemodulecompetency = new \core_competency\course_module_competency(0, $record);
$coursemodulecompetency->create();
}
Expand Down

0 comments on commit fbf4d35

Please sign in to comment.