[LON-CAPA-cvs] cvs: loncom(version_2_2_X) /interface loncreateuser.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 31 Aug 2006 02:19:51 -0000


albertel		Wed Aug 30 22:19:51 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/interface	loncreateuser.pm 
  Log:
  - BUG#4981, end wasn't getting set (fields were being counted and when the number of fields changed everything got shifted around.)
  
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.125.2.5 loncom/interface/loncreateuser.pm:1.125.2.6
--- loncom/interface/loncreateuser.pm:1.125.2.5	Thu Aug 17 18:45:18 2006
+++ loncom/interface/loncreateuser.pm	Wed Aug 30 22:19:50 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.125.2.5 2006/08/17 22:45:18 albertel Exp $
+# $Id: loncreateuser.pm,v 1.125.2.6 2006/08/31 02:19:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -320,11 +320,11 @@
             }
             else { 
                 var coursename = "_$dcdom"+"_"+course+"_"+userrole
-                document.cu.elements[numcourse].name = "act"+coursename
-                document.cu.elements[numcourse+5].name = "sec"+coursename
-                document.cu.elements[numcourse+5].value = section
-                document.cu.elements[numcourse+7].name = "start"+coursename
-                document.cu.elements[numcourse+8].name = "end"+coursename
+                document.cu.act.name = "act"+coursename
+                document.cu.sec.value = section
+                document.cu.sec.name = "sec"+coursename
+                document.cu.start.name = "start"+coursename
+                document.cu.end.name = "end"+coursename
             }
         }
         document.cu.submit();