]> git.evergreen-ils.org Git - Evergreen.git/commit
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 <jason@sigio.com>
Wed, 24 Aug 2016 22:52:07 +0000 (18:52 -0400)
commit4249b4d5f65ca0a98e3e5b1b974fc96853515e47
tree40e5cc5127f33ee994c755701ddfdfb98b523029
parent9516f19afd7e686c4dffa137d90c1afa76c5c372
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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Transit.pm