diff --git a/course/modlib.php b/course/modlib.php index 187364bf846..c9e12408813 100644 --- a/course/modlib.php +++ b/course/modlib.php @@ -527,6 +527,7 @@ function update_moduleinfo($cm, $moduleinfo, $course, $mform = null) { // Completion settings that would affect users who have already completed // the activity may be locked; if so, these should not be updated. if (!empty($moduleinfo->completionunlocked)) { + $cm->completion = $moduleinfo->completion; if ($moduleinfo->completiongradeitemnumber === '') { $cm->completiongradeitemnumber = null; } else {