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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 19 Jul 2006 10:10:40 -0000


albertel		Wed Jul 19 06:10:40 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/interface	loncreateuser.pm 
  Log:
  - backport 1.128
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.125.2.2 loncom/interface/loncreateuser.pm:1.125.2.3
--- loncom/interface/loncreateuser.pm:1.125.2.2	Thu Jun 29 13:48:21 2006
+++ loncom/interface/loncreateuser.pm	Wed Jul 19 06:10:40 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.125.2.2 2006/06/29 17:48:21 albertel Exp $
+# $Id: loncreateuser.pm,v 1.125.2.3 2006/07/19 10:10:40 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -378,7 +378,6 @@
             var str = document.cu.elements[i].name;
             var checkcurr = str.match(re1);
             if (checkcurr != null) {
-                var re2 = /^currsec_[a-zA-Z0-9]+_[a-zA-Z0-9]+_(\\w+)\$/;
                 if (document.cu.elements[i-1].checked == true) {
                     var re2 = /^currsec_[a-zA-Z0-9]+_[a-zA-Z0-9]+_(\\w+)\$/;
                     match = re2.exec(str);
@@ -439,8 +438,8 @@
                                     }
                                 }
                             }
-                            document.cu.elements[i+2].value = sections;
                         }
+                        document.cu.elements[i+2].value = sections;
                     }
                 }
             }