From fe4da91b72ea8d40d3d72561b2eb9ec5416a8813 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 16 Oct 2024 10:52:10 +0100 Subject: [PATCH] Bug 33736: Don't search on start_date if no date filter is defined Signed-off-by: Paul Derscheid --- .../intranet-tmpl/prog/en/modules/circ/pendingbookings.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt index d1f7289645..485d3398af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt @@ -120,7 +120,11 @@ isoTo = todate.get(0)._flatpickr.selectedDates[0].toISOString().substring(0,10); } - return { '>=': isoFrom, '<=': isoTo }; + if ( isoFrom || isoTo ) { + return { '>=': isoFrom, '<=': isoTo }; + } else { + return + } }, 'item.holding_library_id': function() { let library = $("#library").find(":selected").val(); -- 2.47.0