From: Laury GvR Date: Thu, 20 Sep 2018 19:14:15 +0000 (-0400) Subject: Added ref_type as a reference of the filter for the various lists, and textSearch... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=ae0836a64673a6afc1e8c1b4728e8c818c8d5398;p=WP-Plugins%2Fglm-member-db-packaging.git Added ref_type as a reference of the filter for the various lists, and textSearch field --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index b790dd1..7456018 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -92,7 +92,7 @@ add_filter( 'component' => 'textSearch', 'entityID' => 'packageID', 'table' => $packagesTable, - 'fields' => "id, title, image, ref_dest", + 'fields' => "id, title, image, ref_type, ref_dest", 'resultUrl' => $packagingEditPage, ], 'active' => [ @@ -102,8 +102,8 @@ add_filter( 'component' => 'list', 'entityID' => 'packageID', 'table' => $packagesTable, - 'fields' => "id, title, ref_dest", - 'where' => 'status='.$this->config['status_numb']['Active'] . '', + 'fields' => "id, title, ref_type, ref_dest", + 'where' => 'status='.$this->config['status_numb']['Active'], 'resultUrl' => $packagingEditPage, ], 'pending' => [ @@ -113,8 +113,8 @@ add_filter( 'component' => 'list', 'entityID' => 'packageID', 'table' => $packagesTable, - 'fields' => "id, title, ref_dest", - 'where' => 'status='.$this->config['status_numb']['Pending'] . '', + 'fields' => "id, title, ref_type, ref_dest", + 'where' => 'status='.$this->config['status_numb']['Pending'], 'resultUrl' => $packagingEditPage, ], 'expired' => [ @@ -124,7 +124,7 @@ add_filter( 'component' => 'list', 'entityID' => 'packageID', 'table' => $packagesTable, - 'fields' => "id, title, ref_dest", + 'fields' => "id, title, ref_type, ref_dest", // 'fields' => [ // 'id', // 'title',