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

raeburn raeburn@source.lon-capa.org
Tue, 09 Nov 2010 14:00:28 -0000


raeburn		Tue Nov  9 14:00:28 2010 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  - Text for alert when optional section field not associated (lost in 1.1 when
    routines in londropadd moved to lonuersutils.pm).
  - Fix numbering in javacsript for reverse association.
  - Missing argument in call to verify_message for reverse association.   
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.129 loncom/interface/lonuserutils.pm:1.130
--- loncom/interface/lonuserutils.pm:1.129	Mon Nov  1 18:19:01 2010
+++ loncom/interface/lonuserutils.pm	Tue Nov  9 14:00:28 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.129 2010/11/01 18:19:01 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.130 2010/11/09 14:00:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -534,6 +534,7 @@
         if (message!='') {
             message+='\\n';
         }
+        message+='$alert{'section'}';
     }
     if (foundemail==0) {
         if (message!='') {
@@ -747,11 +748,12 @@
         if (i==6 && tw!=0) { foundid=1; }
         if (i==7 && tw!=0) { foundsec=1; }
         if (i==8 && tw!=0) { foundpwd=1; }
-        if (i==9 && tw!=0) { foundrole=1; }
-        if (i==10 && tw!=0) { founddomain=1; }
-        if (i==13 && tw!=0) { foundinstatus=1; }
+        if (i==9 && tw!=0) { foundemail=1; }
+        if (i==10 && tw!=0) { foundrole=1; }
+        if (i==11 && tw!=0) { founddomain=1; }
+        if (i==12 && tw!=0) { foundinstatus=1; }
     }
-    verify_message(vf,founduname,foundpwd,foundname,foundid,foundsec,foundrole,founddomain,foundinststatus);
+    verify_message(vf,founduname,foundpwd,foundname,foundid,foundsec,foundemail,foundrole,founddomain,foundinststatus);
 }
 
 function flip(vf,tf) {