[LON-CAPA-cvs] cvs: loncom /interface lonuserutils.pm

raeburn raeburn at source.lon-capa.org
Fri Jun 13 07:14:35 EDT 2014


raeburn		Fri Jun 13 11:14:35 2014 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  - Eliminate javascript error with IE when form element name is undefined.
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.167 loncom/interface/lonuserutils.pm:1.168
--- loncom/interface/lonuserutils.pm:1.167	Wed Apr 16 12:17:12 2014
+++ loncom/interface/lonuserutils.pm	Fri Jun 13 11:14:35 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.167 2014/04/16 12:17:12 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.168 2014/06/13 11:14:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5396,6 +5396,9 @@
     var groups = new Array($groupslist);
     for (var i=0;i<formname.elements.length;i++) {
         var str = formname.elements[i].name;
+        if (typeof(str) === "undefined") {
+            continue;
+        }
         var checkcurr = str.match(re1);
         if (checkcurr != null) {
             var num = i;




More information about the LON-CAPA-cvs mailing list