Merge branch 'master_MDL-65116' of https://github.com/yao9394/moodle
[moodle.git] / mod / assign / locallib.php
index 0929b1f..7211b0d 100644 (file)
@@ -909,7 +909,7 @@ class assign {
         $keys = array('duedate', 'cutoffdate', 'allowsubmissionsfromdate');
         foreach ($keys as $key) {
             if (isset($override->{$key})) {
-                $this->get_instance()->{$key} = $override->{$key};
+                $this->get_instance($userid)->{$key} = $override->{$key};
             }
         }