Change order of expired and add where for expired list handling
authorLaury GvR <laury@gaslightmedia.com>
Fri, 21 Sep 2018 22:06:09 +0000 (18:06 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 21 Sep 2018 22:06:09 +0000 (18:06 -0400)
setup/adminHooks.php

index 6e72d75..cf10620 100644 (file)
@@ -137,10 +137,12 @@ add_filter(
                     'id'        => 'expired',
                     'title'     => "Expired Packages",
                     'slug'      => "expired-packages",
+                    'order'     => 5,
                     'template'  => 'list',
                     'entityID'  => 'packageID',
                     'table'     => $packagesTable,
-                    'fields'    => "id, title, ref_type, ref_dest",
+                    'fields'    => "id, title, ref_type, ref_dest, expire_date",
+                    'where'     => 'WHERE expire_date < NOW()',
                     // 'fields' => [
                     //     'id',
                     //     'title',