]> git.koha-community.org Git - koha.git/commit
Bug 30878: Avoid resetting waiting reserves tab
authorLari Taskula <lari.taskula@hypernova.fi>
Wed, 1 Jun 2022 15:06:52 +0000 (15:06 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 14 Sep 2022 09:51:11 +0000 (11:51 +0200)
commitacd6e804c7d4dc4b0247b8da8a66f2ccad966e01
tree1c8ad637e10753a07de2ed1f382af97a411974f1
parentbdaefd6745e573e42547dc80669d766ba4d7600a
Bug 30878: Avoid resetting waiting reserves tab

When canceling holds waiting over X days in "Holds awaiting pickup"
view, form submission resets the selected tab to "Holds waiting". This
tab reset may cause confusion for the user and lead to unwanted
actions. Instead, the user should be returned to the same tab that they
began with.

To test:
1. Apply patch
2. Navigate to /cgi-bin/koha/circ/waitingreserves.pl
3. Select "Holds waiting over X days" tab
4. Refresh page
5. Observe "Holds waiting over X days" is still selected
6. Have some holds waiting over X days
7. Select one of them and press "Cancel selected (1)" and confirm
8. Observe "Holds waiting over X days" is still selected after form
   submission

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 30235d31884c6c24edf692a9f69170b25a645e05)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1b8bb46ced840065193144e0f40c33e38f3d0a18)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt