[open-ils-commits] r14687 - branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 29 17:43:59 EDT 2009
Author: erickson
Date: 2009-10-29 17:43:53 -0400 (Thu, 29 Oct 2009)
New Revision: 14687
Modified:
branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
Log:
when changing the pickup lib of a hold that is already on the shelf, create a hold-transit-copy not just a regular transit-copy
Modified: branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2009-10-29 21:43:34 UTC (rev 14686)
+++ branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2009-10-29 21:43:53 UTC (rev 14687)
@@ -631,7 +631,8 @@
$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);
@@ -642,7 +643,7 @@
$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;
}
More information about the open-ils-commits
mailing list