--- loncom/interface/loncreateuser.pm 2010/03/21 21:05:42 1.337 +++ loncom/interface/loncreateuser.pm 2010/04/02 14:18:50 1.338 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.337 2010/03/21 21:05:42 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.338 2010/04/02 14:18:50 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2582,7 +2582,8 @@ sub update_user_data { push(@disporder,'reqcrsotherdom'); } push(@disporder,('quota','tools')); - my ($defquota,my $settingstatus) = + $oldinststatus = $userenv{'inststatus'}; + my ($defquota,$settingstatus) = &Apache::loncommon::default_quota($env{'form.ccdomain'},$oldinststatus); my %canshow; if (&Apache::lonnet::allowed('mpq',$env{'form.ccdomain'})) { @@ -2600,7 +2601,6 @@ sub update_user_data { $canshow{'inststatus'} = 1; } my (%changeHash,%changed); - $oldinststatus = $userenv{'inststatus'}; if ($oldinststatus eq '') { $oldsettings{'inststatus'} = $othertitle; } else { @@ -6269,7 +6269,8 @@ sub update_selfenroll_config { $newnum ++; } } - for (my $j=0; $j<$env{'form.selfenroll_types_total'}; $j++) { if ((!grep(/^$j$/,@deletedoms)) && (!grep(/^$j$/,@activations))) { + for (my $j=0; $j<$env{'form.selfenroll_types_total'}; $j++) { + if ((!grep(/^$j$/,@deletedoms)) && (!grep(/^$j$/,@activations))) { my @types = &Apache::loncommon::get_env_multiple('form.selfenroll_types_'.$j); if (@types > 0) { @types = sort(@types);