]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 2 Sep 2022 19:17:31 +0000 (19:17 +0000)
commit1b8bb46ced840065193144e0f40c33e38f3d0a18
tree489050a782cab8010b14fbfc22ed0b6ad69d7767
parenta53650a2f80851df9ae268299405a67cb01a2c48
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>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt