changed hold creation to make request_lib the ws_ou of the requestor - also added...
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Circ / Holds.pm
index 21cb016..5113d6d 100644 (file)
@@ -139,6 +139,7 @@ sub create_hold {
                }
 
                $hold->requestor($e->requestor->id); 
                }
 
                $hold->requestor($e->requestor->id); 
+               $hold->request_lib($e->requestor->ws_ou);
                $hold->selection_ou($recipient->home_ou) 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;
                $hold->selection_ou($recipient->home_ou) 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;