mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-37966 Assignment: put upgraded modules where the originals were
This commit is contained in:
parent
373a8e052c
commit
bdc4cb9ef0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue