Skip to content
Snippets Groups Projects
Commit 90c08f22 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

cherry-picked commit 03159126

parent eaa7b3f1
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,16 @@ class CopyController extends PluginController
$newcourse['start_time'] = $semester['beginn'];
$newcourse->store();
//Check if the old course is in at least one course
//group ("LV-Gruppe") of the module managemeny system:
$course_groups = Lvgruppe::findBySeminar($course_id);
if ($course_groups) {
//Add the copied course to all found course groups:
foreach ($course_groups as $course_group) {
$course_group->addSeminar($newcourse->id);
}
}
if ($lock_copied_courses) {
//Get the ID of the locked admission courseset:
$locked_admission_id = CourseSet::getGlobalLockedAdmissionSetId();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment