wrong target for parts holds in open-ils.circ.holds.retrieve_all_from_title
authorJason Etheridge <jason@esilibrary.com>
Thu, 26 May 2011 06:42:07 +0000 (02:42 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 26 May 2011 06:42:34 +0000 (02:42 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 734936f..ddfd0ad 100644 (file)
@@ -2769,10 +2769,15 @@ sub all_rec_holds {
                        %$args 
                }, {idlist=>1} );
 
+    my $parts = $e->search_biblio_monograph_part(
+        {
+            record => $title_id
+        }, {idlist=>1} );
+
     $resp->{part_holds} = $e->search_action_hold_request(
         {
                        hold_type => OILS_HOLD_TYPE_MONOPART,
-                       target => $title_id,
+                       target => $parts,
                        %$args
         }, {idlist=>1} );