From c3777543a638022f12a2a874440acc3cf2f16117 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 14 Nov 2019 11:42:56 +0800 Subject: [PATCH] MDL-67116 course: Restore removed line This line was inadvertently removed in a previous commit. --- course/modlib.php | 1 + 1 file changed, 1 insertion(+) 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 {