From: erickson Date: Fri, 3 Sep 2010 19:00:05 +0000 (+0000) Subject: repaired thinko in hold targeting org-unit max-loops check X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0415e9a239e297a8a487aa3a7b820c7491fa546f;p=evergreen%2Fbjwebb.git 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 --- 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 ) {