Fix the spurious "Item is already checked out." warning when placing a copy level...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Feb 2010 20:30:24 +0000 (20:30 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 24 Feb 2010 20:30:24 +0000 (20:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15637 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm

index 6f98016..a633e72 100644 (file)
@@ -2289,7 +2289,7 @@ sub hold_item_is_checked_out {
 
     if($hold_type eq 'C') {
 
-        $query->{where}->{'+acp'}->{id} = $hold_target;
+        $query->{where}->{'+acp'}->{id}->{in}->{where}->{'target_copy'} = $hold_target;
 
     } elsif($hold_type eq 'V') {