logic error (inversion) in retargetting of previous copy when no other holds are...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 19:46:47 +0000 (19:46 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Nov 2010 19:46:47 +0000 (19:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18858 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index 53c517a..1e16add 100644 (file)
@@ -1454,7 +1454,7 @@ sub new_hold_copy_targeter {
                                $log->debug("\tUpdating hold [".$hold->id."] with new 'current_copy' [".$best->id."] for hold fulfillment.");
                        } elsif (
                                $old_best &&
-                               action::hold_request
+                               !action::hold_request
                                        ->search_where(
                                                { current_copy => $old_best->id,
                                                  fulfillment_time => undef,