Skip to content

Commit

Permalink
fix: upgrade logic for old (authoring tool 2.1.7) courses uploaded vi…
Browse files Browse the repository at this point in the history
…a upload_course api did not work correctly
  • Loading branch information
Glutamat42 committed Dec 3, 2024
1 parent 8088bfe commit 6d0255e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public function set_completion_to_auto(stdClass $cm_info, bool $view): void {
$this->moodle_core_repository->update_course_module_record($cm_info->id, [
'completion' => 2,
'completionpassgrade' => $view ? 0 : 1,
'completionview' => $view ? 1 : 0
'completionview' => $view ? 1 : 0,
'completiongradeitemnumber' => 0
]);
}
}

0 comments on commit 6d0255e

Please sign in to comment.