Bug 29103: Change desk when checking in a waiting reserve
authorNicolas Legrand <nicolas.legrand@bulac.fr>
Tue, 18 Jan 2022 10:45:50 +0000 (10:45 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 1 Apr 2022 10:36:01 +0000 (06:36 -0400)
commitcefaacaffa0866c6c394ac668f2d4426241cbde1
tree104a855c8f8d64aa2b02cb4673b68555f5cc59b1
parent2550b3b60889e113e02cb1a69ff31c08927c4d95
Bug 29103: Change desk when checking in a waiting reserve

A check in should relocate a waiting hold under the current desk. But
the current behaviour when confirming the hold is to dismiss the
modal, the item is still attached to the preceding desk.

This patch mimicks the print and confirm behaviour to trigger the desk
change.

Plan test:

1. Add some desks to you library (syspref UseCirculationDesks and
   Administration -> Patrons and circulation -> Circulation desks.

2. Set a desk in your session (Circulation -> Set library and desk)

3. Have some waiting hold attach to a desk (make a hold on a checked
   out item and return it).

4. Change your current desk.

5. Check in again the item, click on confirm.

6. Go to the item notice detail, it appears as waiting at your first
   desk.

7. Apply patch.

8. Check in again the item.

9. go to the item notice detail, it should appear at your current
   desk.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt