fixing contacts text search
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 4 Oct 2018 20:37:29 +0000 (16:37 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 4 Oct 2018 20:37:29 +0000 (16:37 -0400)
setup/adminHooks.php

index 99c4417..7a3e685 100644 (file)
@@ -218,7 +218,7 @@ add_filter(
                     'table'     => $contactsTable,
                     'fields'    => 'concat(fname," ",lname) as name,id,image,ref_dest',
                     'resultUrl' => $contactsEditPage.'&contact=',
-                    'where'     => 'fname OR lname'
+                    'where'     => 'concat(fname," ",lname)'
                 ],
             ]
         ];