]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 25 Jul 2022 11:23:27 +0000 (08:23 -0300)
commit30235d31884c6c24edf692a9f69170b25a645e05
treebcfbfa7b8b6625c18c9c30c421e55958023735f3
parent8a1d66740873009f0cc8d5b28598e9fd45df20bd
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>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt