Skip to content

Commit

Permalink
CRM-20521 Ensure that only Mailing List groups appear in the receipie…
Browse files Browse the repository at this point in the history
…nts box
  • Loading branch information
seamuslee001 committed Jul 31, 2017
1 parent 67a5570 commit 01df148
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ang/crmMailing/Recipients.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,20 @@
}

rcpAjaxState.page_i = page_num - rcpAjaxState.page_n;
var filterParams = {};
switch(rcpAjaxState.entity) {
case 'civicrm_group':
filterParams = { is_hidden: 0, is_active: 1, group_type: "Mailing List" };
break;

case 'civicrm_mailing':
filterParams = { is_hidden: 0, is_active: 1 };
break;
}
var params = {
input: input,
page_num: rcpAjaxState.page_i,
params: { is_hidden: 0, is_active: 1 },
params: filterParams,
};
return params;
},
Expand Down

0 comments on commit 01df148

Please sign in to comment.