[open-ils-commits] r19498 - branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 21 13:33:31 EST 2011
Author: miker
Date: 2011-02-21 13:33:27 -0500 (Mon, 21 Feb 2011)
New Revision: 19498
Modified:
branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm
Log:
Make sure we continue looping in situations where there is only one copy
Modified: branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm 2011-02-21 18:30:19 UTC (rev 19497)
+++ branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm 2011-02-21 18:33:27 UTC (rev 19498)
@@ -1411,7 +1411,8 @@
# 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