[REF] Remove call to depreacated getValue call in Mailing Preferences settings form
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 1 Oct 2019 07:40:35 +0000 (17:40 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 1 Oct 2019 07:40:35 +0000 (17:40 +1000)
CRM/Admin/Form/Preferences/Mailing.php

index ab6069fbed44ce824dd1d994e718efaa45508d0c..ef5e76fd0b2bb14ba0254266a50b53f47e2cd67e 100644 (file)
@@ -59,7 +59,9 @@ class CRM_Admin_Form_Preferences_Mailing extends CRM_Admin_Form_Preferences {
       // see logging setting for eg.
       $existingViewOptions = Civi::settings()->get('contact_view_options');
 
-      $displayValue = CRM_Core_OptionGroup::getValue('contact_view_options', 'CiviMail', 'name');
+      $displayViewOptions = CRM_Core_OptionGroup::values('contact_view_options', TRUE, FALSE, FALSE, NULL, 'name');
+      $displayValue = $displayViewOptions['CiviMail'];
+
       $viewOptions = explode(CRM_Core_DAO::VALUE_SEPARATOR, $existingViewOptions);
 
       if (!in_array($displayValue, $viewOptions)) {