[open-ils-commits] r8479 - branches/rel_1_2_1/Open-ILS/src/extras

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jan 23 11:54:36 EST 2008


Author: erickson
Date: 2008-01-23 11:27:57 -0500 (Wed, 23 Jan 2008)
New Revision: 8479

Modified:
   branches/rel_1_2_1/Open-ILS/src/extras/org_tree_js.pl
Log:
added org name sorting to org list retrieval

Modified: branches/rel_1_2_1/Open-ILS/src/extras/org_tree_js.pl
===================================================================
--- branches/rel_1_2_1/Open-ILS/src/extras/org_tree_js.pl	2008-01-23 14:08:27 UTC (rev 8478)
+++ branches/rel_1_2_1/Open-ILS/src/extras/org_tree_js.pl	2008-01-23 16:27:57 UTC (rev 8479)
@@ -24,10 +24,15 @@
 
 # fetch the org_unit's and org_unit_type's
 my $e = OpenILS::Utils::CStoreEditor->new;
-my $tree = $e->retrieve_all_actor_org_unit;
 my $types = $e->retrieve_all_actor_org_unit_type;
+my $tree = $e->request(
+    'open-ils.cstore.direct.actor.org_unit.search.atomic',
+    {id => {"!=" => undef}},
+    {order_by => {aou => 'name'}}
+);
 
 
+
 sub val {
     my $v = shift;
     return 'null' unless defined $v;



More information about the open-ils-commits mailing list