From bdc4cb9ef0604f5eab9e1a523d34f6a38a2ad759 Mon Sep 17 00:00:00 2001 From: Jonathon Fowler Date: Wed, 27 Mar 2013 12:40:28 +1000 Subject: [PATCH] MDL-37966 Assignment: put upgraded modules where the originals were --- mod/assign/upgradelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.36.1