Skip to content

Commit

Permalink
Merge branch 'MDL-67116-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 14, 2019
2 parents 8a0b9b1 + c377754 commit e9f63f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions course/modlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e9f63f3

Please sign in to comment.