Skip to content
Permalink
Browse files

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

  • Loading branch information...
jonof committed Mar 27, 2013
1 parent 373a8e0 commit bdc4cb9ef0604f5eab9e1a523d34f6a38a2ad759
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.

0 comments on commit bdc4cb9

Please sign in to comment.
You can’t perform that action at this time.