Bug 33792: reserves_stats: Undo homebranch and holdingbranch preselect

This preselect cuts off all next available holds that are in reserves,
as well as holds filled by checkout without confirm (see 33791).

Test plan:
Go to reporting. Click Hold statistics.
Verify that Holding library and Home library are not selected.
Test that you can still filter by one of those.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e22b3f0666)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Marcel de Rooy 2023-05-22 12:35:02 +00:00 committed by Matt Blenkinsop
parent 4757f8b191
commit fbb08f3fdc
1 changed files with 8 additions and 0 deletions

View File

@ -338,6 +338,14 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
<script>
$(document).ready(function () {
// Undo the selection that Branches.all made, since there may be no item with homebranch or holdingbranch
$('#holdingbranch option').prop('selected', false);
$('#homebranch option').prop('selected', false);
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]