From 0415e9a239e297a8a487aa3a7b820c7491fa546f Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 3 Sep 2010 19:00:05 +0000 Subject: [PATCH] repaired thinko in hold targeting org-unit max-loops check git-svn-id: svn://svn.open-ils.org/ILS/trunk@17478 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index ee47185a5..eff5a0a3f 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -1338,7 +1338,7 @@ sub new_hold_copy_targeter { $current_loop++ if (!@keepers); - if ($self->{max_loops}{$pu_lib} && $self->{max_loops}{$pu_lib} <= $current_loop) { + if ($self->{max_loops}{$pu_lib} && $self->{max_loops}{$pu_lib} >= $current_loop) { # We haven't exceeded max_loops yet my @keeper_copies; for my $cp ( @$all_copies ) { -- 2.11.0