--- loncom/interface/loncreateuser.pm 2006/06/28 18:18:44 1.124 +++ loncom/interface/loncreateuser.pm 2006/06/29 15:45:18 1.125 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.124 2006/06/28 18:18:44 albertel Exp $ +# $Id: loncreateuser.pm,v 1.125 2006/06/29 15:45:18 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -415,15 +415,17 @@ ENDSCRIPT sections = document.cu.elements[i+1].value; } var newsecs = document.cu.elements[i+1].value; + var numsplit; if (newsecs != null && newsecs != "") { - var numsplit = newsecs.split(/,/g); + numsplit = newsecs.split(/,/g); numsec = numsec + numsplit.length; } + if ((role == 'st') && (numsec > 1)) { alert("In each course, each user may only have one student role at a time. You had selected "+numsec+" sections.\\nPlease modify your selections so they include no more than one section.") return; } - else { + else if (numsplit != null) { for (var j=0; j 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.