added org name sorting to org list retrieval
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Jan 2008 16:27:57 +0000 (16:27 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Jan 2008 16:27:57 +0000 (16:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_1@8479 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/org_tree_js.pl

index c16af51..d604001 100644 (file)
@@ -24,8 +24,13 @@ $cache->delete_cache('orgtree');
 
 # 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 {