CRM-15578 - suppress hidden groups from Recipients selector.
authorDave Greenberg <dave@civicrm.org>
Wed, 25 Feb 2015 01:48:49 +0000 (17:48 -0800)
committerDave Greenberg <dave@civicrm.org>
Wed, 25 Feb 2015 01:48:49 +0000 (17:48 -0800)
----------------------------------------
* CRM-15578: Implement "New Mailing" + "AB Testing" in Angular
  https://issues.civicrm.org/jira/browse/CRM-15578

partials/crmMailing/recipients.html

index 920a9fb4ffd4675a8ebebe71ce1a6af1d719a08c..d3fcc360bf294524e316e5d0349514b5007ae283 100644 (file)
@@ -8,7 +8,7 @@
     crm-mailing-recipients
     ng-model="mailing.recipients"
     crm-mandatory-groups="crmMailingConst.groupNames | filter:{is_hidden:1}"
-    crm-avail-groups="crmMailingConst.groupNames | filter:isMailingList"
+    crm-avail-groups="crmMailingConst.groupNames | filter:isMailingList | filter:{is_hidden:0}"
     crm-avail-mailings="crmMailingConst.civiMails | filter:{is_completed:1}"
     crm-ui-id="{{crmMailingBlockRecipients.id}}"
     name="{{crmMailingBlockRecipients.name}}"