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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sat, 12 Jul 2008 14:16:36 -0000


raeburn		Sat Jul 12 10:16:36 2008 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - &instrule_disallow_msg() - if mode is 'selfcreate', message about choosing a username with a different format is not sent. 
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.668 loncom/interface/loncommon.pm:1.669
--- loncom/interface/loncommon.pm:1.668	Thu Jul 10 18:07:18 2008
+++ loncom/interface/loncommon.pm	Sat Jul 12 10:16:32 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.668 2008/07/10 22:07:18 raeburn Exp $
+# $Id: loncommon.pm,v 1.669 2008/07/12 14:16:32 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6810,6 +6810,10 @@
         } elsif ($checkitem eq 'id') {
             $response .= &mt("Either upload a file which includes $text{'action'} with a different format --  $text{'one'} that will not conflict with 'official' institutional $text{'items'}, or when associating fields with data columns, omit an association for the ID/Student Number field.");
         }
+    } elsif ($mode eq 'selfcreate') {
+        if ($checkitem eq 'id') {
+            $response .= &mt("You must either choose $text{'action'} with a different format --  $text{'one'} that will not conflict with 'official' institutional $text{'items'}, or leave the ID field blank.");
+        }
     } else {
         if ($checkitem eq 'username') {
             $response .= &mt("You must choose $text{'action'} with a different format --  $text{'one'} that will not conflict with 'official' institutional $text{'items'}.");