Fixing the event list data sent through the filter
authorLaury GvR <laury@gaslightmedia.com>
Thu, 4 Oct 2018 18:58:03 +0000 (14:58 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 4 Oct 2018 18:58:03 +0000 (14:58 -0400)
setup/adminHooks.php

index 94e431d..323ac04 100644 (file)
@@ -362,12 +362,12 @@ add_filter(
                     'result'        => $Events->getList("status=".$Events->config['status_numb']['Pending'], $order, $fieldVals, $idField, $start, $limit),
                     'count'         => $Events->getStats("status=".$Events->config['status_numb']['Pending'], $order, $fieldVals, $idField, $start, $limit),
                     'fieldMap'      => [
-                        'id'            => 'id',
-                        'ref_dest_name' => 'ref_dest',
+                        'ID'            => 'id',
                         'name'          => 'name',
-                        'ref_type'      => 'ref_type',
-                        'ref_dest_id'   => 'ref_dest_id',
-                        'status'        => 'status'
+                        'status'        => 'status',
+                        'refDestID'     => 'ref_dest_id',
+                        'refDestName'   => 'ref_dest',
+                        'refType'       => 'ref_type',
                     ],
                 ],
             ]