From ae0836a64673a6afc1e8c1b4728e8c818c8d5398 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 20 Sep 2018 15:14:15 -0400 Subject: [PATCH] Added ref_type as a reference of the filter for the various lists, and textSearch field --- setup/adminHooks.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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', -- 2.17.1