From f5c8ccf8a442e4b8a6664d65f26679a1f63c0774 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 1 Oct 2019 17:40:35 +1000 Subject: [PATCH] [REF] Remove call to depreacated getValue call in Mailing Preferences settings form --- CRM/Admin/Form/Preferences/Mailing.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/Preferences/Mailing.php b/CRM/Admin/Form/Preferences/Mailing.php index ab6069fbed44..ef5e76fd0b2b 100644 --- a/CRM/Admin/Form/Preferences/Mailing.php +++ b/CRM/Admin/Form/Preferences/Mailing.php @@ -59,7 +59,9 @@ public function postProcess() { // 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)) {