From: Jonathon Fowler Date: Wed, 27 Mar 2013 02:40:28 +0000 (+1000) Subject: MDL-37966 Assignment: put upgraded modules where the originals were X-Git-Tag: v2.5.0-rc1~157^2 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=bdc4cb9ef0604f5eab9e1a523d34f6a38a2ad759 MDL-37966 Assignment: put upgraded modules where the originals were --- diff --git a/mod/assign/upgradelib.php b/mod/assign/upgradelib.php index 12baafb9cae..65e0b51e9db 100644 --- a/mod/assign/upgradelib.php +++ b/mod/assign/upgradelib.php @@ -396,7 +396,7 @@ class assign_upgrade_manager { 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.