From dbd63a2c2ade2f452d08d4d7738f96a46b6b5b78 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 Sponsored-by: PTFS Europe Ltd Signed-off-by: Esther Melander Signed-off-by: Paul Derscheid Signed-off-by: Katrin Fischer --- .../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.39.5