repaired thinko in hold targeting org-unit max-loops check
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Sep 2010 19:00:05 +0000 (19:00 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Sep 2010 19:00:05 +0000 (19:00 +0000)
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

index ee47185..eff5a0a 100644 (file)
@@ -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 ) {