[open-ils-commits] r7667 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Aug 15 10:14:13 EDT 2007


Author: miker
Date: 2007-08-15 10:10:18 -0400 (Wed, 15 Aug 2007)
New Revision: 7667

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
Log:
use iterator interface instead of magical array-ref-ness

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm	2007-08-15 13:59:36 UTC (rev 7666)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm	2007-08-15 14:10:18 UTC (rev 7667)
@@ -533,7 +533,7 @@
 	}
 
 	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 = '';



More information about the open-ils-commits mailing list