From b7adf847697efa334859d74439dcc0c7261b8e2f Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 26 Jan 2006 03:26:37 +0000 Subject: [PATCH] full-path bugfix git-svn-id: svn://svn.open-ils.org/ILS/trunk@2851 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../OpenILS/Application/Storage/Publisher/actor.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm index 8225898acc..40e94b766f 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm @@ -256,16 +256,15 @@ __PACKAGE__->register_method( sub org_unit_full_path { my $self = shift; my $client = shift; - my $id = shift; - my $depth = shift; + my @binds = @_; - return undef unless ($id); + return undef unless (@binds); my $func = 'actor.org_unit_full_path(?)'; - my $func = 'actor.org_unit_full_path(?,?)' if defined($depth); + $func = 'actor.org_unit_full_path(?,?)' if (@binds > 1); my $sth = actor::org_unit->db_Main->prepare_cached("SELECT * FROM $func"); - $sth->execute($id, $depth); + $sth->execute(@binds); $client->respond( $_->to_fieldmapper ) for ( map { actor::org_unit->construct($_) } $sth->fetchall_hash ); -- 2.43.2