version 1.102, 2009/08/11 23:24:29
|
version 1.103, 2009/08/20 20:13:06
|
Line 1222 sub print_quotas {
|
Line 1222 sub print_quotas {
|
if ($option eq 'autolimit') { |
if ($option eq 'autolimit') { |
$cell{$item} .= '<input type="text" name="crsreq_'. |
$cell{$item} .= '<input type="text" name="crsreq_'. |
$item.'_limit_'.$type.'" size="1" '. |
$item.'_limit_'.$type.'" size="1" '. |
'value="'.$currlimit.'" />'; |
'value="'.$currlimit.'" />'; |
} |
} |
$cell{$item} .= '</span> '; |
$cell{$item} .= '</span> '; |
|
if ($option eq 'autolimit') { |
|
$cell{$item} .= $titles{'unlimited'} |
|
} |
} |
} |
} else { |
} else { |
my $checked = 'checked="checked" '; |
my $checked = 'checked="checked" '; |
Line 1872 sub courserequest_titles {
|
Line 1875 sub courserequest_titles {
|
approve => 'Approval by Dom. Coord.', |
approve => 'Approval by Dom. Coord.', |
validate => 'With validation', |
validate => 'With validation', |
autolimit => 'Numerical limit', |
autolimit => 'Numerical limit', |
|
unlimited => '(blank for unlimited)', |
); |
); |
return %titles; |
return %titles; |
} |
} |
Line 4530 sub modify_usercreation {
|
Line 4534 sub modify_usercreation {
|
if (@{$types} > 0) { |
if (@{$types} > 0) { |
@{$cancreate{'statustocreate'}} = |
@{$cancreate{'statustocreate'}} = |
&Apache::loncommon::get_env_multiple('form.statustocreate'); |
&Apache::loncommon::get_env_multiple('form.statustocreate'); |
|
} else { |
|
@{$cancreate{'statustocreate'}} = (); |
} |
} |
push(@contexts,'statustocreate'); |
push(@contexts,'statustocreate'); |
} |
} |
Line 4538 sub modify_usercreation {
|
Line 4544 sub modify_usercreation {
|
if (($item eq 'selfcreate') || ($item eq 'statustocreate')) { |
if (($item eq 'selfcreate') || ($item eq 'statustocreate')) { |
if (ref($curr_usercreation{'cancreate'}{$item}) eq 'ARRAY') { |
if (ref($curr_usercreation{'cancreate'}{$item}) eq 'ARRAY') { |
foreach my $curr (@{$curr_usercreation{'cancreate'}{$item}}) { |
foreach my $curr (@{$curr_usercreation{'cancreate'}{$item}}) { |
if (!grep(/^$curr$/,@{$cancreate{$item}})) { |
if (ref($cancreate{$item}) eq 'ARRAY') { |
if (!grep(/^$item$/,@{$changes{'cancreate'}})) { |
if (!grep(/^$curr$/,@{$cancreate{$item}})) { |
push(@{$changes{'cancreate'}},$item); |
if (!grep(/^$item$/,@{$changes{'cancreate'}})) { |
|
push(@{$changes{'cancreate'}},$item); |
|
} |
} |
} |
} |
} |
} |
} |
Line 5009 sub modify_defaults {
|
Line 5017 sub modify_defaults {
|
if ($newvalues{$item} ne '') { |
if ($newvalues{$item} ne '') { |
if ($newvalues{$item} =~ /^(\w+)/) { |
if ($newvalues{$item} =~ /^(\w+)/) { |
my $langcode = $1; |
my $langcode = $1; |
if (code2language($langcode) eq '') { |
if ($langcode ne 'x_chef') { |
push(@errors,$item); |
if (code2language($langcode) eq '') { |
|
push(@errors,$item); |
|
} |
} |
} |
} else { |
} else { |
push(@errors,$item); |
push(@errors,$item); |