]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1312824 open-ils.circ.hold.change_title fix
authorJason Boyer <JBoyer1@library.in.gov>
Fri, 25 Apr 2014 16:45:34 +0000 (12:45 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 30 May 2017 14:07:05 +0000 (10:07 -0400)
commitecce8315e77ec28fea37bfd2b10108b462c9ce7c
treeef43c66573a45361ea051b7897de420cedc307c9
parent9b1f0254416123aa2ce8ce49d688d529e09d8f25
LP1312824 open-ils.circ.hold.change_title fix

Add a capture_time => undef limit to both change_title
APIs to prevent currently captured holds from being reset
when moving holds from one title to another.
More work is needed to prevent items currently in transit
from having their transits canceled.

Test plan
---------
1. Create a bib with multiple holdings
2. Add multiple holds to this title and capture one of them - Item
   will have a status of On Holds Shelf
3. Open another bib record, open Actions for this Record menu,
   Mark as Hold Transfer Destination
4. Return to the record that has a captured hold, open Actions for
   this Record, Transfer all Title Holds
5. Check Captured hold, Item status is Available, hold has been reset
   and now points to the new bib record.

With the patch applied, steps 2-5 above should be repeated, but this
time in step 5 the hold will still be on the original record and the
item's status will still be On Holds Shelf.

Signed-off-by: Jason Boyer <JBoyer1@library.in.gov>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm