when changing the pickup lib of a hold that is already on the shelf, create a hold...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Oct 2009 21:43:14 +0000 (21:43 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Oct 2009 21:43:14 +0000 (21:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14685 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index db71c58..54973de 100644 (file)
@@ -742,7 +742,8 @@ sub transit_hold {
 
     $logger->info("putting hold into transit on pickup_lib update");
 
-    my $transit = Fieldmapper::action::transit_copy->new;
+    my $transit = Fieldmapper::action::hold_transit_copy->new;
+    $transit->hold($hold->id);
     $transit->source($src);
     $transit->dest($dest);
     $transit->target_copy($copy->id);
@@ -753,7 +754,7 @@ sub transit_hold {
     $copy->editor($e->requestor->id);
     $copy->edit_date('now');
 
-    $e->create_action_transit_copy($transit) or return $e->die_event;
+    $e->create_action_hold_transit_copy($transit) or return $e->die_event;
     $e->update_asset_copy($copy) or return $e->die_event;
     return undef;
 }