'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(),
),
));
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
>
</select>