From 5e576c91b69e6fc14aab1505e06b02b0c521bfac Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 20 Sep 2018 15:25:23 -0400 Subject: [PATCH] adding where clause to the textsearch for the dashboard admin widget --- setup/adminHooks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 7456018..47d6281 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -92,7 +92,8 @@ add_filter( 'component' => 'textSearch', 'entityID' => 'packageID', 'table' => $packagesTable, - 'fields' => "id, title, image, ref_type, ref_dest", + 'fields' => "id, title, image, ref_dest", + 'where' => 'title', 'resultUrl' => $packagingEditPage, ], 'active' => [ -- 2.17.1