defaulting selection_ou to the pickup lib instead of home_ou of the recipient
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Feb 2008 02:40:35 +0000 (02:40 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 15 Feb 2008 02:40:35 +0000 (02:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_1@8753 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 9bce55d..5a13a9f 100644 (file)
@@ -140,7 +140,7 @@ sub create_hold {
 
                $hold->requestor($e->requestor->id); 
                $hold->request_lib($e->requestor->ws_ou);
-               $hold->selection_ou($recipient->home_ou) unless $hold->selection_ou;
+               $hold->selection_ou($hold->pickup_lib) unless $hold->selection_ou;
                $hold = $e->create_action_hold_request($hold) or return $e->event;
 #              push( @copyholds, $hold ) if $hold->hold_type eq OILS_HOLD_TYPE_COPY;
        }