Add query to remove the not attending attendees from export.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Jul 2018 15:14:42 +0000 (11:14 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Jul 2018 15:14:42 +0000 (11:14 -0400)
If they select the complete filter then it will not export those
attendees with Not Attending flag set.

models/admin/ajax/registrantsListExport.php

index 6cb0b16..b09f954 100644 (file)
@@ -145,6 +145,7 @@ class GlmMembersAdmin_ajax_registrantsListExport extends GlmDataRegistrationsReq
             //   FROM " . GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX .  "reg_request
             //  WHERE status = {$this->config['submission_status_numb']['COMPLETE']})";
 
+            $whereParts[] = " T.not_attending <> true ";
             $whereParts[] = "
                 (
                 SELECT count(id)