From 2515d7ff83c35b7a3347f8de2fac8078c5489a7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20T=C3=A9tard?= Date: Thu, 3 Mar 2016 11:47:05 +0100 Subject: [PATCH] CRM-18037: default value for preferred_mail_format should be 'Both'. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Default value should be “Both”, there is no need to find the translated text for it. This prevents from having an empty default in translated installations of CiviCRM. --- CRM/Contact/Form/Edit/CommunicationPreferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Edit/CommunicationPreferences.php b/CRM/Contact/Form/Edit/CommunicationPreferences.php index ed3e4dbe8c..03ba749b80 100644 --- a/CRM/Contact/Form/Edit/CommunicationPreferences.php +++ b/CRM/Contact/Form/Edit/CommunicationPreferences.php @@ -166,7 +166,7 @@ class CRM_Contact_Form_Edit_CommunicationPreferences { // CRM-17778 -- set preferred_mail_format to default if unset if (empty($defaults['preferred_mail_format'])) { - $defaults['preferred_mail_format'] = array_search('Both', CRM_Core_SelectValues::pmf()); + $defaults['preferred_mail_format'] = 'Both'; } //set default from greeting types CRM-4575, CRM-9739 -- 2.25.1