[LON-CAPA-cvs] cvs: modules /msu localenroll.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Wed, 25 Jul 2007 23:03:15 -0000


raeburn		Wed Jul 25 19:03:15 2007 EDT

  Modified files:              
    /modules/msu	localenroll.pm 
  Log:
  srchby for last name is 'lastname' not 'last'
  
  
Index: modules/msu/localenroll.pm
diff -u modules/msu/localenroll.pm:1.26 modules/msu/localenroll.pm:1.27
--- modules/msu/localenroll.pm:1.26	Wed Jul 25 16:29:35 2007
+++ modules/msu/localenroll.pm	Wed Jul 25 19:03:15 2007
@@ -1,6 +1,6 @@
 # functions to glue school database system into Lon-CAPA for
 # automated enrollment
-# $Id: localenroll.pm,v 1.26 2007/07/25 20:29:35 raeburn Exp $
+# $Id: localenroll.pm,v 1.27 2007/07/25 23:03:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -543,7 +543,7 @@
                 $condition = "WHERE MSUNetID = '$srchterm'";
             }
         }
-    } elsif ($srchby eq 'last') {
+    } elsif ($srchby eq 'lastname') {
         if ($srchterm =~ /[A-Za-z\-\.']+/) {
             if ($srchtype eq 'contains') {
                 my $quoted_last = $dbh->quote('%'.$srchterm.'%');