[LON-CAPA-cvs] cvs: loncom /interface courseprefs.pm
raeburn
raeburn at source.lon-capa.org
Tue Apr 5 10:08:46 EDT 2022
raeburn Tue Apr 5 14:08:46 2022 EDT
Modified files:
/loncom/interface courseprefs.pm
Log:
- Preserve existing settings when other changes are made to link protection
configuration in a course from any server, not just course's homeserver.
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.108 loncom/interface/courseprefs.pm:1.109
--- loncom/interface/courseprefs.pm:1.108 Tue Apr 5 12:27:39 2022
+++ loncom/interface/courseprefs.pm Tue Apr 5 14:08:46 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.108 2022/04/05 12:27:39 raeburn Exp $
+# $Id: courseprefs.pm,v 1.109 2022/04/05 14:08:46 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1660,7 +1660,6 @@
}
} else {
$linkprot{$itemid}{'secret'} = $current{'secret'};
- $linkprot{$itemid}{'cipher'} = $current{'cipher'};
}
} elsif ($env{$secretitem} ne '') {
if ($privnum && $cipher) {
@@ -2213,6 +2212,9 @@
if (exists($oldlinkprot->{$id}{'usable'})) {
$changes->{$id}->{'usable'} = 1;
}
+ if (exists($oldlinkprot->{$id}{'cipher'})) {
+ $changes->{$id}->{'cipher'} = $oldlinkprot->{$id}{'cipher'};
+ }
}
}
}
More information about the LON-CAPA-cvs
mailing list