Skip to content

Commit

Permalink
Merge pull request #15368 from seamuslee001/deprecated_getvalue_maili…
Browse files Browse the repository at this point in the history
…ng_prefernces

[REF] Remove call to depreacated getValue call in Mailing Preferences…
  • Loading branch information
eileenmcnaughton authored Oct 2, 2019
2 parents ee585fd + f5c8ccf commit 289f2f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Admin/Form/Preferences/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 289f2f1

Please sign in to comment.