https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36135 --- Comment #109 from Emmi Takkinen <emmi.takkinen@koha-suomi.fi> --- (In reply to Lucas Gass (lukeg) from comment #106)
I can select checkboxes from multiple pages now, but when click 'Modify holds' only the ones on my current page are handled.
Looked into this and it seems to be the default for datatables to handle data like this. I tried turning option "serverSide" as false as suggested in the DataTables forum to fetch all data from table, but no luck, it still changes only the holds in current page. We could fetch hold_ids from localStorage, but then we lose ability to check in front-end if modification is possible (e.g. if user tries to suspend hold with found status) and we can't display error message pop-up before attempting to modify holds. I came up with following ways to handle this: 1) Fetch found and suspended status for selected holds with API and display error message as pop-up like it is currently displayed. 2) Make check from back-end and send error message from there back to front. 3) Do not display error message, but do not modify holds which can't be modified either. Show "Following holds couldn't be modified. Reason:..." in "Holds modified" page. -- You are receiving this mail because: You are watching all bug changes.