From b0889b874dc1641002c55747121aff6c4a2da791 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 14 Sep 2022 21:57:20 -0400 Subject: [PATCH] upmerge #24506 --- CRM/Contact/Form/Contact.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Contact/Form/Contact.php b/CRM/Contact/Form/Contact.php index cffd41aaa5..e714c484a3 100644 --- a/CRM/Contact/Form/Contact.php +++ b/CRM/Contact/Form/Contact.php @@ -944,6 +944,8 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form { if (array_key_exists('CommunicationPreferences', $this->_editOptions)) { // this is a chekbox, so mark false if we dont get a POST value $params['is_opt_out'] = CRM_Utils_Array::value('is_opt_out', $params, FALSE); + + CRM_Utils_Array::formatArrayKeys($params['preferred_communication_method']); } // process shared contact address. -- 2.25.1