diff --git a/ang/crmMailing/Recipients.js b/ang/crmMailing/Recipients.js index 759fd4c91ad2..4203d4a3c8f7 100644 --- a/ang/crmMailing/Recipients.js +++ b/ang/crmMailing/Recipients.js @@ -136,7 +136,7 @@ var gids = []; var mids = []; - for (var i in values) { + for (var i = 0; i < values.length; i++) { var dv = convertValueToObj(values[i]); if (dv.entity_type == 'civicrm_group') { gids.push(dv.entity_id);