$contactID = $session->get('userID');
$params = array('options' => array('limit' => 0));
- $civiMails = civicrm_api3('Mailing', 'get', $params + array('return' => array('id', 'name', 'scheduled_date')));
+ $civiMails = civicrm_api3('Mailing', 'get', $params + array(
+ 'is_completed' => 1,
+ 'return' => array('id', 'name', 'scheduled_date'),
+ ));
$campNames = civicrm_api3('Campaign', 'get', $params);
$groupNames = civicrm_api3('Group', 'get', $params);
$headerfooterList = civicrm_api3('MailingComponent', 'get', $params);
ng-model="mailing.recipients"
crm-mandatory-groups="crmMailingConst.groupNames | filter:{is_hidden:1}"
crm-avail-groups="crmMailingConst.groupNames | filter:isMailingList | filter:{is_hidden:0}"
- crm-avail-mailings="crmMailingConst.civiMails | filter:{is_completed:1}"
+ crm-avail-mailings="crmMailingConst.civiMails"
crm-ui-id="{{crmMailingBlockRecipients.id}}"
name="{{crmMailingBlockRecipients.name}}"
ng-required="true"