From 0a90eb04c123b93823d25a8680b94a0b1f84afcf Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 20 Apr 2022 11:13:53 +0100 Subject: [PATCH] Bug 28633: (QA follow-up) Add preferred_name to ysearch This adds preferred_name to the search fields in the autocomplete search system. https://bugs.koha-community.org/show_bug.cgi?id=24633 --- circ/ysearch.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/circ/ysearch.pl b/circ/ysearch.pl index c19031ad4f..bb440d7e58 100755 --- a/circ/ysearch.pl +++ b/circ/ysearch.pl @@ -59,10 +59,11 @@ foreach my $p (@parts) { push( @params, -or => [ - surname => { -like => "%$p%" }, - firstname => { -like => "%$p%" }, - cardnumber => { -like => "$p%" }, - ] + surname => { -like => "%$p%" }, + firstname => { -like => "%$p%" }, + preferred_name => { -like => "%$p%" }, + cardnumber => { -like => "$p%" }, + ] ); } -- 2.20.1