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

raeburn raeburn@source.lon-capa.org
Sun, 06 Mar 2011 02:42:12 -0000


raeburn		Sun Mar  6 02:42:12 2011 EDT

  Modified files:              
    /modules/msu	localenroll.pm 
  Log:
  - Bug 6274.
     - Years for MSU institutional course codes (first of linked dropdown lists) 
       displayed in descending order (Course Catalog, pickcourse, "Ask Helpdesk").
  : ----------------------------------------------------------------------
  
  
Index: modules/msu/localenroll.pm
diff -u modules/msu/localenroll.pm:1.54 modules/msu/localenroll.pm:1.55
--- modules/msu/localenroll.pm:1.54	Tue Jan 11 21:53:32 2011
+++ modules/msu/localenroll.pm	Sun Mar  6 02:42:11 2011
@@ -1,6 +1,6 @@
 # functions to glue school database system into Lon-CAPA for
 # automated enrollment
-# $Id: localenroll.pm,v 1.54 2011/01/11 21:53:32 raeburn Exp $
+# $Id: localenroll.pm,v 1.55 2011/03/06 02:42:11 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -485,6 +485,9 @@
             }
         }
     }
+    if (ref($$cat_titles{'Year'}) eq 'HASH') {
+        @{$$cat_order{'Year'}} = sort { $b <=> $a } keys(%{$$cat_titles{'Year'}});
+    }
     my $outcome = 'ok';
     return $outcome;
 }