From be945a48000072bde92292bf7581331ef1a627dc Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 10 Jul 2018 14:46:24 -0400 Subject: [PATCH] Minor fix to checkout process to better handle submission storage errors. 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 | 2 +- models/admin/ajax/registrantsListExport.php | 1 + models/front/registrations/checkoutProcess.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/regCartSupport.php b/classes/regCartSupport.php index d6c98b1..4e35aa2 100644 --- a/classes/regCartSupport.php +++ b/classes/regCartSupport.php @@ -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) { diff --git a/models/admin/ajax/registrantsListExport.php b/models/admin/ajax/registrantsListExport.php index 94194ba..9daa145 100644 --- a/models/admin/ajax/registrantsListExport.php +++ b/models/admin/ajax/registrantsListExport.php @@ -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'); } diff --git a/models/front/registrations/checkoutProcess.php b/models/front/registrations/checkoutProcess.php index c7824b3..117de0b 100644 --- a/models/front/registrations/checkoutProcess.php +++ b/models/front/registrations/checkoutProcess.php @@ -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, -- 2.17.1