From 8cb6ba3cebb0a05ca9fe068a2f5afca2a42bbac3 Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 23 Nov 2008 15:33:12 +0000 Subject: [PATCH] removing unused depth field for actor.org_unit_ancestors query git-svn-id: svn://svn.open-ils.org/ILS/trunk@11308 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm index 59a5898c59..d3e4f3c491 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm @@ -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', -- 2.11.0