--- loncom/interface/domainprefs.pm 2014/04/28 01:48:04 1.238 +++ loncom/interface/domainprefs.pm 2014/05/04 21:48:56 1.239 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.238 2014/04/28 01:48:04 raeburn Exp $ +# $Id: domainprefs.pm,v 1.239 2014/05/04 21:48:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -622,7 +622,7 @@ sub process_changes { } elsif ($action eq 'scantron') { $output = &modify_scantron($r,$dom,$confname,$lastactref,%domconfig); } elsif ($action eq 'coursecategories') { - $output = &modify_coursecategories($dom,%domconfig); + $output = &modify_coursecategories($dom,$lastactref,%domconfig); } elsif ($action eq 'serverstatuses') { $output = &modify_serverstatuses($dom,%domconfig); } elsif ($action eq 'requestcourses') { @@ -9364,7 +9364,7 @@ sub modify_scantron { } sub modify_coursecategories { - my ($dom,%domconfig) = @_; + my ($dom,$lastactref,%domconfig) = @_; my ($resulttext,%deletions,%reorderings,%needreordering,%adds,%changes,$errors, $cathash); my @deletecategory = &Apache::loncommon::get_env_multiple('form.deletecategory'); @@ -9605,6 +9605,12 @@ sub modify_coursecategories { } } $resulttext .= ''; + if ($changes{'unauth'} || $changes{'auth'}) { + &Apache::loncommon::devalidate_domconfig_cache($dom); + if (ref($lastactref) eq 'HASH') { + $lastactref->{'domainconfig'} = 1; + } + } } else { $resulttext = ''. &mt('An error occurred: [_1]',$putresult).'';