version 1.160.6.42, 2014/04/28 04:12:41
|
version 1.160.6.43, 2014/05/04 22:19:29
|
Line 606 sub process_changes {
|
Line 606 sub process_changes {
|
} elsif ($action eq 'scantron') { |
} elsif ($action eq 'scantron') { |
$output = &modify_scantron($r,$dom,$confname,$lastactref,%domconfig); |
$output = &modify_scantron($r,$dom,$confname,$lastactref,%domconfig); |
} elsif ($action eq 'coursecategories') { |
} elsif ($action eq 'coursecategories') { |
$output = &modify_coursecategories($dom,%domconfig); |
$output = &modify_coursecategories($dom,$lastactref,%domconfig); |
} elsif ($action eq 'serverstatuses') { |
} elsif ($action eq 'serverstatuses') { |
$output = &modify_serverstatuses($dom,%domconfig); |
$output = &modify_serverstatuses($dom,%domconfig); |
} elsif ($action eq 'requestcourses') { |
} elsif ($action eq 'requestcourses') { |
Line 9346 sub modify_scantron {
|
Line 9346 sub modify_scantron {
|
} |
} |
|
|
sub modify_coursecategories { |
sub modify_coursecategories { |
my ($dom,%domconfig) = @_; |
my ($dom,$lastactref,%domconfig) = @_; |
my ($resulttext,%deletions,%reorderings,%needreordering,%adds,%changes,$errors, |
my ($resulttext,%deletions,%reorderings,%needreordering,%adds,%changes,$errors, |
$cathash); |
$cathash); |
my @deletecategory = &Apache::loncommon::get_env_multiple('form.deletecategory'); |
my @deletecategory = &Apache::loncommon::get_env_multiple('form.deletecategory'); |
Line 9587 sub modify_coursecategories {
|
Line 9587 sub modify_coursecategories {
|
} |
} |
} |
} |
$resulttext .= '</ul>'; |
$resulttext .= '</ul>'; |
|
if ($changes{'unauth'} || $changes{'auth'}) { |
|
&Apache::loncommon::devalidate_domconfig_cache($dom); |
|
if (ref($lastactref) eq 'HASH') { |
|
$lastactref->{'domainconfig'} = 1; |
|
} |
|
} |
} else { |
} else { |
$resulttext = '<span class="LC_error">'. |
$resulttext = '<span class="LC_error">'. |
&mt('An error occurred: [_1]',$putresult).'</span>'; |
&mt('An error occurred: [_1]',$putresult).'</span>'; |