Bug 14874: Set default DefaultPatronSearchFields
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 Oct 2016 11:57:13 +0000 (12:57 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 27 Oct 2016 13:21:13 +0000 (13:21 +0000)
just in case...

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Utils/DataTables/Members.pm

index 132b096..2446703 100644 (file)
@@ -76,7 +76,7 @@ sub search {
     }
 
     my $searchfields = {
-        standard => C4::Context->preference('DefaultPatronSearchFields'),
+        standard => C4::Context->preference('DefaultPatronSearchFields') || 'surname,firstname,othernames,cardnumber,userid',
         surname => 'surname',
         email => 'email,emailpro,B_email',
         borrowernumber => 'borrowernumber',