From 3af27824b73af78b432b0c177892afa90c4b7f23 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 14 May 2024 14:47:33 +0200 Subject: [PATCH] Bug 35862: Fix patron_search_form selection We were no longer getting a match here and so ended up with 2 forms on the budget page (where we have two modals for patron: owner and users). Caught be selenium tests patrons_search.t : Error while executing command: element not interactable: Element could not be scrolled into view It fixes the following UI issues: When you open a modal, start a search, close the modal open the other modal search: the results from the other modal were shown Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 6dd9d150fa..c8dd64c124 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -275,7 +275,7 @@ function get_patron_search_form(){ let parent_block = $("#[% search_results_block_id | html %]"); - let patron_search_form = parent_block.siblings(".patron_search_form"); + let patron_search_form = parent_block.parent().find(".patron_search_form"); if ( !patron_search_form.length ) patron_search_form = $(".patron_search_form"); return patron_search_form; } -- 2.39.5