removing unused depth field for actor.org_unit_ancestors query
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 23 Nov 2008 15:33:12 +0000 (15:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 23 Nov 2008 15:33:12 +0000 (15:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11308 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm

index 59a5898..d3e4f3c 100644 (file)
@@ -1440,8 +1440,7 @@ sub get_org_descendants {
 }
 
 sub get_org_ancestors {
-       my($self, $org_id, $depth) = @_;
-       $depth ||= 0;
+       my($self, $org_id) = @_;
 
        my $org_list = OpenILS::Utils::CStoreEditor->new->json_query({
                select => {
@@ -1449,7 +1448,7 @@ sub get_org_ancestors {
                                transform => 'actor.org_unit_ancestors',
                                column => 'id',
                                result_field => 'id',
-                               params => [$depth]
+                               params => []
                        }],
                },
                from => 'aou',