--- loncom/interface/courseprefs.pm 2022/04/05 12:27:39 1.108 +++ loncom/interface/courseprefs.pm 2022/04/05 18:15:30 1.110 @@ -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.110 2022/04/05 18:15:30 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) { @@ -1678,7 +1677,7 @@ sub process_linkprot { $changes->{$entry} = $linkprot{$entry}; } if (ref($lastactref) eq 'HASH') { - $lastactref->{'courselti'} = 1'; + $lastactref->{'courselti'} = 1; } } return $errors; @@ -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'}; + } } } }