From 0571001166de9df69a5356911b790076274b0471 Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Tue, 18 Mar 2025 11:33:01 -0700 Subject: [PATCH] when copying a course including its sets, don't copy the lis_source_id of the sets --- lib/WeBWorK/Utils/CourseManagement.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/WeBWorK/Utils/CourseManagement.pm b/lib/WeBWorK/Utils/CourseManagement.pm index 15b8b37b9d..f95593c3f5 100644 --- a/lib/WeBWorK/Utils/CourseManagement.pm +++ b/lib/WeBWorK/Utils/CourseManagement.pm @@ -385,6 +385,7 @@ sub addCourse { if ($db0 && $options{copySets}) { my @sets = $db0->getGlobalSetsWhere; for my $set (@sets) { + $set->lis_source_did(undef); eval { $db->addGlobalSet($set) }; warn $@ if $@;