version 1.21.4.14, 2024/07/03 16:35:11
|
version 1.21.4.17, 2024/07/14 23:48:58
|
Line 341 sub make_changes {
|
Line 341 sub make_changes {
|
} else { |
} else { |
$changes{$item} = {}; |
$changes{$item} = {}; |
$errors = |
$errors = |
&Apache::courseprefs::process_changes($dom,$item,$values, |
&Apache::courseprefs::process_changes($dom,$confname,$item,$values, |
$prefs->{$item},$changes{$item}, |
$prefs->{$item},$changes{$item}, |
$allitems,\%disallowed,$crstype); |
$allitems,\%disallowed,$crstype); |
if (keys(%{$changes{$item}}) > 0) { |
if (keys(%{$changes{$item}}) > 0) { |
Line 384 sub make_changes {
|
Line 384 sub make_changes {
|
if ($context eq 'course') { |
if ($context eq 'course') { |
$footer_text = 'Back to display/edit settings'; |
$footer_text = 'Back to display/edit settings'; |
} |
} |
&print_footer($r,$phase,'display',$footer_text,\@actions,$container,$parm_permission); |
|
$r->print('</p>'); |
$r->print('</p>'); |
|
&print_footer($r,$phase,'display',$footer_text,\@actions,$container,$parm_permission); |
return \%lastact; |
return \%lastact; |
} |
} |
|
|
Line 451 sub display_settings {
|
Line 451 sub display_settings {
|
$phase,$item,$prefs->{$item},$settings); |
$phase,$item,$prefs->{$item},$settings); |
} else { |
} else { |
($output{$item},$rowtotal{$item}) = |
($output{$item},$rowtotal{$item}) = |
&Apache::courseprefs::print_config_box($r,$dom,$phase, |
&Apache::courseprefs::print_config_box($r,$dom,$confname,$phase, |
$item,$prefs->{$item},$values,$allitems,$crstype,$parm_permission); |
$item,$prefs->{$item},$values,$allitems,$crstype,$parm_permission); |
} |
} |
$rowsum += $rowtotal{$item}; |
$rowsum += $rowtotal{$item}; |