[open-ils-commits] r19497 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 21 13:30:23 EST 2011
Author: miker
Date: 2011-02-21 13:30:19 -0500 (Mon, 21 Feb 2011)
New Revision: 19497
Modified:
branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
Make sure we continue looping in situations where there is only one copy
Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2011-02-21 15:44:39 UTC (rev 19496)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm 2011-02-21 18:30:19 UTC (rev 19497)
@@ -1399,7 +1399,7 @@
# We haven't exceeded max_loops yet
my @keeper_copies;
for my $cp ( @$all_copies ) {
- push(@keeper_copies, $cp) if ( grep { $_ eq ''.$cp->circ_lib } @keepers );
+ push(@keeper_copies, $cp) if ( !@keepers || grep { $_ eq ''.$cp->circ_lib } @keepers );
}
$all_copies = [@keeper_copies];
} else {
More information about the open-ils-commits
mailing list