From 92dd5fb3b4f3231cd40c72dc5e4a80bb7f7cea66 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 6 Mar 2015 14:12:45 -0500 Subject: [PATCH] Mailing 'visibility' option value cleanup --- CRM/Mailing/Info.php | 5 +---- partials/crmMailing/publication.html | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index fb3c94c2e1..aa39ba05b9 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -143,10 +143,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { 'id' => 'user_contact_id', 'return' => 'email', )), - 'visibility' => array( - array('value' => 'Public Pages', 'label' => ts('Public Pages')), - array('value' => 'User and User Admin Only', 'label' => ts('User and User Admin Only')), - ), + 'visibility' => CRM_Utils_Array::makeNonAssociative(CRM_Core_SelectValues::groupVisibility()), 'workflowEnabled' => CRM_Mailing_Info::workflowEnabled(), ), )); diff --git a/partials/crmMailing/publication.html b/partials/crmMailing/publication.html index 7f647c5c36..e51f7b1204 100644 --- a/partials/crmMailing/publication.html +++ b/partials/crmMailing/publication.html @@ -7,7 +7,7 @@ ui-jq="select2" ui-options="{dropdownAutoWidth : true}" ng-model="mailing.visibility" - ng-options="v.value as v.label for v in crmMailingConst.visibility" + ng-options="v.key as v.value for v in crmMailingConst.visibility" required > -- 2.25.1