Removed limit of 25 groups and past mailings
authorLars SG <lars@wildsight.ca>
Thu, 15 Apr 2021 04:05:23 +0000 (22:05 -0600)
committerLars SG <lars@wildsight.ca>
Thu, 15 Apr 2021 04:05:23 +0000 (22:05 -0600)
Before: Saving a mailing with more than 25 groups or past mailing recipients caused the number of groups to be reduced to 25.
After: As many groups as desired can be added.

ang/crmMailing/services.js

index 3dbbf9ae985a4fe78823be4c4765f55862b7836f..fc5ab146c72017aa866f556056eac46d63be5e11 100644 (file)
       },
       // Call MailingGroup.get and merge results into "mailing"
       _loadGroups: function (mailing) {
-        return crmApi('MailingGroup', 'get', {mailing_id: mailing.id})
+        return crmApi('MailingGroup', 'get', {mailing_id: mailing.id, 'options': {'limit':0}})
           .then(function (groupResult) {
             mailing.recipients = {};
             mailing.recipients.groups = {include: [], exclude: [], base: []};