Effort to fix the search functionality for the dashboard widget feature/adminRevamp
authorLaury GvR <laury@gaslightmedia.com>
Fri, 19 Oct 2018 21:18:17 +0000 (17:18 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 19 Oct 2018 21:18:17 +0000 (17:18 -0400)
setup/adminHooks.php

index aee3b66..27eaf9b 100644 (file)
@@ -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=",
                 ],
                 [