From 9650776ed7061e49c0f986dfde5417e0f28495d1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Mar 2022 13:34:01 +0200 Subject: [PATCH] Bug 30063: Fix start with MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It was doing "end with"... Signed-off-by: Séverine Queune Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- 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 b8d479e15d..6013536d11 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -302,7 +302,7 @@ search_fields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,surname,othernames,cardnumber,userid' | html %]"; } search_fields.split(',').forEach(function(e,i){ - filters.push({["me."+e]:{"like":"%"+filter+(search_type == "contain" ? "%" : "" )}}); + filters.push({["me."+e]:{"like":(search_type == "contain" ? "%" : "" ) + filter + "%"}}); }); [% IF Koha.Preference('ExtendedPatronAttributes') && extended_attribute_types %] filters.push({ -- 2.39.5