From f78abdbef8f06fa0a5b2ed8a3fc351975484adfc Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 30 Jan 2015 22:00:38 -0800 Subject: [PATCH] CRM-15880 - crmMailing - Properly display recipients on multi-lingual sites. --- js/angular-crmMailing/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); -- 2.25.1