From: Laury GvR Date: Fri, 19 Oct 2018 21:18:17 +0000 (-0400) Subject: Effort to fix the search functionality for the dashboard widget X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=2da27a3dec5916d1b0946b361287f286abf9e33f;p=WP-Plugins%2Fglm-member-db-coupons.git Effort to fix the search functionality for the dashboard widget --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index aee3b66..27eaf9b 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -141,8 +141,8 @@ add_filter( 'template' => 'textSearch', 'entityID' => 'coupon', 'table' => $couponsTable, - 'fields' => "id, title as name, image", - 'where' => 'title', + 'fields' => "id, name, image", + 'where' => 'name', 'resultUrl' => $couponsListPage . "&coupon=", ], [