From 6bf83674cfb455c021201f8d65cb822ec88e9266 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 15 Oct 2025 09:07:25 +0000 Subject: [PATCH] Bug 40504: Preparation: Disambiguation of .clear_search This is required, or clicking 'Clear' on the ILL patron search modal will trigger this event listener and cause a JS error, as the 'regular' ILL table is not shown/initialized when editing an ILL request Signed-off-by: Jeremy Evans --- koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js index 413b9f9458c..7c97255c61b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -816,7 +816,7 @@ $(document).ready(function () { populateBackendFilter(); // Clear all filters - $(".clear_search").click(function () { + $("#illfilter_form .clear_search").click(function () { clearSearch(); }); }); -- 2.39.5