From 54ee13534c25ca075ce152f1f26efa98808eb65a Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Wed, 25 Aug 2021 09:13:51 +1000 Subject: [PATCH] CIVICRM-1816 CiviCRM Mailing, function unsub_from_mailing has spelling error, "experiement" impacts A/B Mailing unsubscribes --- CRM/Mailing/Event/BAO/Unsubscribe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/Event/BAO/Unsubscribe.php b/CRM/Mailing/Event/BAO/Unsubscribe.php index ff7415fa4e..73f61f549c 100644 --- a/CRM/Mailing/Event/BAO/Unsubscribe.php +++ b/CRM/Mailing/Event/BAO/Unsubscribe.php @@ -132,7 +132,7 @@ WHERE email = %2 $relevant_mailing_id = $mailing_id; // Special case for AB Tests: - if (in_array($mailing_type, ['experiement', 'winner'])) { + if (in_array($mailing_type, ['experiment', 'winner'])) { // The mailing belongs to an AB test. // See if we can find an AB test where this is variant B. $mailing_id_a = CRM_Core_DAO::getFieldValue('CRM_Mailing_DAO_MailingAB', mailing_id, 'mailing_id_a', 'mailing_id_b'); -- 2.25.1