adding where clause to the textsearch for the dashboard admin widget
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 19:25:23 +0000 (15:25 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Sep 2018 19:25:23 +0000 (15:25 -0400)
setup/adminHooks.php

index 7456018..47d6281 100644 (file)
@@ -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' => [