From 80334d67a26f1c96cb34579783f44b8c4d455ee7 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 fa334ec82d3..e175c4c44c1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -821,7 +821,7 @@ $(document).ready(function () { populateBackendFilter(); // Clear all filters - $(".clear_search").click(function () { + $("#illfilter_form .clear_search").click(function () { clearSearch(); }); }); -- 2.39.5