Added ref_type as a reference of the filter for the various lists, and textSearch...
authorLaury GvR <laury@gaslightmedia.com>
Thu, 20 Sep 2018 19:14:15 +0000 (15:14 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 20 Sep 2018 19:14:15 +0000 (15:14 -0400)
setup/adminHooks.php

index b790dd1..7456018 100644 (file)
@@ -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',