Make the mail format required
authorSamuel Vanhove <samuel@symbiotic.coop>
Wed, 21 Sep 2016 21:39:03 +0000 (17:39 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Wed, 21 Sep 2016 21:39:03 +0000 (17:39 -0400)
CRM/Contact/Form/Edit/CommunicationPreferences.php

index 7ab867c8bba313cb2e305a271699b511ff12f3df..bdc7ba497c8945677f4b57b5bcfa837beb05cdac 100644 (file)
@@ -84,7 +84,7 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
     //using for display purpose.
     $form->assign('commPreference', $commPreference);
 
-    $form->addField('preferred_mail_format', array('entity' => 'contact', 'label' => ts('Email Format')));
+    $form->addField('preferred_mail_format', array('entity' => 'contact', 'label' => ts('Email Format')), true);
 
     $form->addField('is_opt_out', array('entity' => 'contact', 'label' => ts('NO BULK EMAILS (User Opt Out)')));