From 7e5d5567d8985f674cf22e2f53289f35eaddc5ea Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 15 Aug 2007 14:10:18 +0000 Subject: [PATCH] use iterator interface instead of magical array-ref-ness git-svn-id: svn://svn.open-ils.org/ILS/trunk@7667 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2234a27746..5124698abd 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm @@ -533,7 +533,7 @@ sub patron_search { } if (!$ws_ou) { # XXX This should be required!! - $ws_ou = actor::org_unit->search( { parent_ou => undef } )->[0]->id; + $ws_ou = actor::org_unit->search( { parent_ou => undef } )->next->id; } my $opt_in_join = ''; -- 2.11.0