From 252f297a5a9b6ce51d2973dcfcc8a1131e2f3e8c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 27 Jun 2023 14:40:59 +0000 Subject: [PATCH] Bug 34106: Update header search box searchtype when form is submitted We're updating the side menu searchtype when the search header is submitted, we should also update the searchtype in the search header when the form is submitted Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit b9ffc47100dbb13e966af73c713a6857cb9e8ca0) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 5 +++++ 1 file changed, 5 insertions(+) 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 8cc465eead..99f8b8601c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -655,6 +655,7 @@ }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters); $("#patron_search_form").on('submit', filter); + $("#patron_search_form").on('submit', update_search_type); $(".filterByLetter").on("click",function(e){ e.preventDefault(); filterByFirstLetterSurname($(this).text(), true); @@ -714,6 +715,10 @@ } } + function update_search_type(){ + $("#searchtype").val($("#searchtype_filter").val()); + } + function update_search_description(){ var searched = $("#searchfieldstype_filter").find("option:selected").text(); if ( $("#search_patron_filter").val() ) { -- 2.20.1