From: Tim Otten Date: Sat, 31 Jan 2015 06:00:38 +0000 (-0800) Subject: CRM-15880 - crmMailing - Properly display recipients on multi-lingual sites. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f78abdbef8f06fa0a5b2ed8a3fc351975484adfc;p=civicrm-core.git CRM-15880 - crmMailing - Properly display recipients on multi-lingual sites. --- diff --git a/js/angular-crmMailing/services.js b/js/angular-crmMailing/services.js index e1eae1c2bc..c33a120ea2 100644 --- a/js/angular-crmMailing/services.js +++ b/js/angular-crmMailing/services.js @@ -135,7 +135,7 @@ mailing.groups = {include: [], exclude: []}; mailing.mailings = {include: [], exclude: []}; _.each(groupResult.values, function (mailingGroup) { - var bucket = (mailingGroup.entity_table == 'civicrm_group') ? 'groups' : 'mailings'; + var bucket = (/^civicrm_group/.test(mailingGroup.entity_table)) ? 'groups' : 'mailings'; var entityId = parseInt(mailingGroup.entity_id); mailing[bucket][mailingGroup.group_type].push(entityId); });