Bug 36720

Summary: Going back when placing multiple holds retains prior selections
Product: Koha Reporter: Jason Robb <jrobb>
Component: Hold requestsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: gmcharlt
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jason Robb 2024-04-29 21:04:07 UTC
In the staff client, when placing multiple holds with the checkboxes on the search results page, if you go back and make new selections after clicking 'place hold', the prior selections are still kept.

To replicate:
- Search for something with more than 2 results
- On the search results page, check two different checkboxes
- Click 'Place hold' at the top of the results
- Go back with the browser's back button
- Uncheck the previous selections, check checkboxes for two new titles
- Click 'Place hold' at the top of the results
- Search for a patron
- Notice 4 titles are listed, despite only having 2 checked

Also, going back, then clicking 'place hold' again without changing the checkboxes will cause the titles to be listed in the table of potential holds multiple times.