version 1.404, 2014/12/11 01:20:50
|
version 1.407, 2016/01/31 21:25:38
|
Line 3110 sub update_user_data {
|
Line 3110 sub update_user_data {
|
\%newsettingstext); |
\%newsettingstext); |
if ($env{'form.cid'} ne $userenv{'id'}) { |
if ($env{'form.cid'} ne $userenv{'id'}) { |
&Apache::lonnet::idput($env{'form.ccdomain'}, |
&Apache::lonnet::idput($env{'form.ccdomain'}, |
($env{'form.ccuname'} => $env{'form.cid'})); |
{$env{'form.ccuname'} => $env{'form.cid'}},$uhome,'ids'); |
if (($recurseid) && |
if (($recurseid) && |
(&Apache::lonnet::allowed('mau',$env{'form.ccdomain'}))) { |
(&Apache::lonnet::allowed('mau',$env{'form.ccdomain'}))) { |
my $idresult = |
my $idresult = |
Line 5544 sub print_selfenroll_menu {
|
Line 5544 sub print_selfenroll_menu {
|
butn => 'but no user types have been checked.', |
butn => 'but no user types have been checked.', |
wilf => "Please uncheck 'activate' or check at least one type.", |
wilf => "Please uncheck 'activate' or check at least one type.", |
); |
); |
|
&js_escape(\%alerts); |
my $selfenroll_js = <<"ENDSCRIPT"; |
my $selfenroll_js = <<"ENDSCRIPT"; |
function update_types(caller,num) { |
function update_types(caller,num) { |
var delidx = getIndexByName('selfenroll_delete'); |
var delidx = getIndexByName('selfenroll_delete'); |
Line 5745 ENDSCRIPT
|
Line 5746 ENDSCRIPT
|
$cathash = $domconfig{'coursecategories'}{'cats'}; |
$cathash = $domconfig{'coursecategories'}{'cats'}; |
$cattype{'auth'} = $domconfig{'coursecategories'}{'auth'}; |
$cattype{'auth'} = $domconfig{'coursecategories'}{'auth'}; |
$cattype{'unauth'} = $domconfig{'coursecategories'}{'unauth'}; |
$cattype{'unauth'} = $domconfig{'coursecategories'}{'unauth'}; |
|
if ($cattype{'auth'} eq '') { |
|
$cattype{'auth'} = 'std'; |
|
} |
|
if ($cattype{'unauth'} eq '') { |
|
$cattype{'unauth'} = 'std'; |
|
} |
} else { |
} else { |
$cathash = {}; |
$cathash = {}; |
$cattype{'auth'} = 'std'; |
$cattype{'auth'} = 'std'; |