LP 1306666: Abort Transit Only Change Copy Status if In Transit
authorJason Stephenson <jstephenson@mvlcstaff.org>
Fri, 18 Mar 2016 20:38:33 +0000 (16:38 -0400)
committerJason Stephenson <jstephenson@mvlcstaff.org>
Fri, 24 Jun 2016 18:48:46 +0000 (14:48 -0400)
commit8d5422088cb268cacfe7e28f8e58029bcbea8fe2
tree2448d2164666c9bf8a813fb02516353f77531e8b
parent9bfd8c89825035bb9ffce3e3691fe266610b7086
LP 1306666: Abort Transit Only Change Copy Status if In Transit

When aborting a transit, the copy status is presently changed, either
to the status stored in action.transit_copy or to Reshelving if the
transit was for a hold.  This causes problems with "hanging" transits
where something was not handled properly before.  We've had cases
where a transit sticks around on a copy that is later checked out, and
while that copy is checked out, the transit is aborted, thus setting
the copy status to Reshelving when it should be Checked Out.

The code change in this branch only changes the copy's status if it is
In Transit.  A copy in any other status has its status left untouched.

Signed-off-by: Jason Stephenson <jstephenson@mvlcstaff.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Transit.pm