From 384f9282e1cf0dcbbfa5dec6b48951300d05cc50 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 18 Aug 2023 11:16:44 +0000 Subject: [PATCH] Bug 33428: (follow-up): Default to searching 'standard' fields Before this patch set, a search for patrons from article requests or reserves would search the attributes by default. They were not considered 'standard' searches, however. This patch simply defaults to searching the 'standard' fields unless a value is passed To test: 1 - Apply other patches 2 - Have patrons with searchable attributes 3 - From a title, click the holds or artickle requests tab 4 - Search for the attribute values and confirm patrons are not returned 5 - Apply this patch 6 - Search again, patrons are now returned Signed-off-by: Tomas Cohen Arazi --- 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 d51a499b9a..1e9ff498db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -319,7 +319,7 @@ let filters = []; let search_type = $("#searchtype_filter").val() || "contains"; - let search_fields = $("#searchfieldstype_filter").val(); + let search_fields = $("#searchfieldstype_filter").val() || "standard"; let pattern = $("#search_patron_filter").val(); filters = buildPatronSearchQuery( -- 2.39.5