--- loncom/interface/courseprefs.pm 2022/04/05 12:27:39 1.108 +++ loncom/interface/courseprefs.pm 2022/04/05 14:08:46 1.109 @@ -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 @@ sub process_linkprot { } } else { $linkprot{$itemid}{'secret'} = $current{'secret'}; - $linkprot{$itemid}{'cipher'} = $current{'cipher'}; } } elsif ($env{$secretitem} ne '') { if ($privnum && $cipher) { @@ -2213,6 +2212,9 @@ sub store_linkprot { if (exists($oldlinkprot->{$id}{'usable'})) { $changes->{$id}->{'usable'} = 1; } + if (exists($oldlinkprot->{$id}{'cipher'})) { + $changes->{$id}->{'cipher'} = $oldlinkprot->{$id}{'cipher'}; + } } } }