Minor fix to checkout process to better handle submission storage errors.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 10 Jul 2018 18:46:24 +0000 (14:46 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 10 Jul 2018 18:46:24 +0000 (14:46 -0400)
fixed a problem where the checks for submission storage would incorrectly
detect a MYSQL storage error when the submission was good. This only
happened when the exact same submission data was already stored.
Minor cleanup with event attendees export.

classes/regCartSupport.php
models/admin/ajax/registrantsListExport.php
models/front/registrations/checkoutProcess.php

index d6c98b1..4e35aa2 100644 (file)
@@ -1465,7 +1465,7 @@ class GlmRegCartSupport
             if ($submitAddr != '') {
 
                 $subjectLine = $this->generateHTML($viewData, $regMisc['submission_notify_subject'], true);
-                $emailMsg = $this->generateHTML($viewData, nl2br($regMisc['submission_notify_text']), true)."\n\n".$summary;
+                $emailMsg = $this->generateHTML($viewData, nl2br($regMisc['submission_notify_text']), true);
 
                 // If front debug is on and this is a test submission output message to screen rather than send.
                 if (GLM_MEMBERS_PLUGIN_FRONT_DEBUG) {
index 94194ba..9daa145 100644 (file)
@@ -157,6 +157,7 @@ class GlmMembersAdmin_ajax_registrantsListExport extends GlmDataRegistrationsReq
                 ) > 0
             ";
         } else {
+            // In case script doesn't catch not having any set
             die('ERROR: No status selected');
         }
 
index c7824b3..117de0b 100644 (file)
@@ -738,7 +738,7 @@ class GlmMembersFront_registrations_checkoutProcess extends GlmRegCartSupport
         );
 
         // Check if not properly stored ..... Send E-Mail to developers
-        if ($updated != 1) {
+        if ($updated === false) {
             $err = array(
                 'Site'                  => $this->config['settings']['reg_org_name'],
                 'requestId'             => $requestId,