From e6b778b5d49cffcb33ccfa30542c4271d35e60e9 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 7 May 2024 15:46:23 +0000 Subject: [PATCH] Bug 36804: Fix clear filter 1) Visit serials and click "New subscription": http://localhost:8081/cgi-bin/koha/serials/serials-home.pl 2) Enter '112' on the record input and '1' on the vendor input. Click "Next" 3) 'First issue publication date' -> Enter some date in the past 4) 'Frequency' -> Enter '2/day' 5) 'Subscription start date' Same as step 3) 6) 'Subscription end date' Some date in the future 7) 'Numbering pattern' -> Enter 'Number' 8) Click 'Test prediction pattern'. Click 'Save subscription' 9) On the left side menu -> Click "Serial collection". Click the yellow button 'Edit serials' 10) On the first serial, edit the status to 'Late'. Save. 11) Visit serials claims: http://localhost:8081/cgi-bin/koha/serials/claims.pl?supplierid=1 12) Input some dates in "From" and "To" 13) Click 'Clear filter'. Notice it doesn't work. 14) Apply patch. Repeat. Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt index b9696b269f..21d8e10539 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -288,7 +288,8 @@ }); $("#clearfilter").on("click",function(e){ e.preventDefault(); - $("#from,#to").val(""); + $("#from").flatpickr().clear(); + $("#to").flatpickr().clear(); $("table#claimst tbody tr").show(); }); $("#claims_form").on("submit",function(){ -- 2.39.5