Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37966 Assignment: put upgraded modules where the originals were

  • Loading branch information...
commit bdc4cb9ef0604f5eab9e1a523d34f6a38a2ad759 1 parent 373a8e0
@jonof jonof authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assign/upgradelib.php
2  mod/assign/upgradelib.php
@@ -396,7 +396,7 @@ private function duplicate_course_module(stdClass $cm, $moduleid, $newinstanceid
return false;
- $newcm->section = course_add_cm_to_section($newcm->course, $newcm->id, $section->section);
+ $newcm->section = course_add_cm_to_section($newcm->course, $newcm->id, $section->section, $cm->id);
// Make sure visibility is set correctly (in particular in calendar).
// Note: Allow them to set it even without moodle/course:activityvisibility.
Please sign in to comment.
Something went wrong with that request. Please try again.