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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 07 Sep 2006 21:43:20 -0000


albertel		Thu Sep  7 17:43:20 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/interface	loncreateuser.pm 
  Log:
  - BUG#5010, sfari apprently doesn't like renaming things
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.125.2.6 loncom/interface/loncreateuser.pm:1.125.2.7
--- loncom/interface/loncreateuser.pm:1.125.2.6	Wed Aug 30 22:19:50 2006
+++ loncom/interface/loncreateuser.pm	Thu Sep  7 17:43:20 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.125.2.6 2006/08/31 02:19:50 albertel Exp $
+# $Id: loncreateuser.pm,v 1.125.2.7 2006/09/07 21:43:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -320,11 +320,11 @@
             }
             else { 
                 var coursename = "_$dcdom"+"_"+course+"_"+userrole
-                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.elements[numcourse].name = "act"+coursename
+                document.cu.elements[numcourse+4].name = "sec"+coursename
+                document.cu.elements[numcourse+4].value = section
+                document.cu.elements[numcourse+6].name = "start"+coursename
+                document.cu.elements[numcourse+7].name = "end"+coursename
             }
         }
         document.cu.submit();