X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FPreferences%2FMailing.php;h=63bdb2072a244ce467cd9dfd144dd25d8ae75c72;hb=aaffa79f9a2efa14d079d843f11befffd413935c;hp=e1beccc42ec57fbff90eb8aabbef704aab594638;hpb=d5e5f8438fe2777954f815731e1422c367624bea;p=civicrm-core.git diff --git a/CRM/Admin/Form/Preferences/Mailing.php b/CRM/Admin/Form/Preferences/Mailing.php index e1beccc42e..63bdb2072a 100644 --- a/CRM/Admin/Form/Preferences/Mailing.php +++ b/CRM/Admin/Form/Preferences/Mailing.php @@ -119,10 +119,7 @@ class CRM_Admin_Form_Preferences_Mailing extends CRM_Admin_Form_Preferences { $params = $this->controller->exportValues($this->_name); if (empty($params['write_activity_record'])) { - $existingViewOptions = CRM_Core_BAO_Setting::getItem( - CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, - 'contact_view_options' - ); + $existingViewOptions = Civi::settings()->get('contact_view_options'); $displayValue = CRM_Core_OptionGroup::getValue('contact_view_options', 'CiviMail', 'name'); $viewOptions = explode(CRM_Core_DAO::VALUE_SEPARATOR, $existingViewOptions);