--- loncom/interface/loncreateuser.pm 2017/04/01 14:00:23 1.439 +++ loncom/interface/loncreateuser.pm 2017/07/26 19:42:22 1.441 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.439 2017/04/01 14:00:23 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.441 2017/07/26 19:42:22 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4636,10 +4636,6 @@ sub handler { help=>$allhelpitems} ]; } - #SD Following files not added to help, because the corresponding .tex-files seem to - #be missing: Course_Approve_Selfenroll,Course_User_Logs, - my ($permission,$allowed) = - &Apache::lonuserutils::get_permission($context,$crstype); if (!$allowed) { if ($context eq 'course') { $r->internal_redirect('/adm/viewclasslist'); @@ -5833,12 +5829,13 @@ function validate_types(form) { } function check_types(num,countfail,needaction) { - var typeidx = getIndexByName('selfenroll_types_'+num); + var boxname = 'selfenroll_types_'+num; + var typeidx = getIndexByName(boxname); var count = 0; if (typeidx != -1) { - if (document.$formname.elements[typeidx].length) { - for (var k=0; k