Skip to content
Snippets Groups Projects
Commit 92b549b0 authored by Martin Groppe's avatar Martin Groppe
Browse files

[Projekt: xRM-Marketing][TicketNr.: 2000626][Fehlerhaftes Verhalten bei leerer Blacklist]

parent 5b5540ce
No related branches found
No related tags found
No related merge requests found
...@@ -45,17 +45,21 @@ CommunicationBlacklist.prototype.getFilter = function () ...@@ -45,17 +45,21 @@ CommunicationBlacklist.prototype.getFilter = function ()
CommunicationBlacklist.prototype.loadBlacklistRecipients = function (pBulkMailId) CommunicationBlacklist.prototype.loadBlacklistRecipients = function (pBulkMailId)
{ {
var blacklistLoadConfig = entities.createConfigForLoadingRows() if (!Utils.isNullOrEmpty(this.filter.childs))
.fields(["CONTACT_ID"])
.entity("BulkMailRecipient_entity")
.provider("RecipientsToBeMailed")
.addParameter("BulkMailId_param", pBulkMailId)
.filter(JSON.stringify(this.filter));
var blacklist = entities.getRows(blacklistLoadConfig);
blacklist.forEach(function (recipient)
{ {
this.blacklistContactIds.add(recipient["CONTACT_ID"]); var blacklistLoadConfig = entities.createConfigForLoadingRows()
}, this); .fields(["CONTACT_ID"])
.entity("BulkMailRecipient_entity")
.provider("RecipientsToBeMailed")
.addParameter("BulkMailId_param", pBulkMailId)
.filter(JSON.stringify(this.filter));
var blacklist = entities.getRows(blacklistLoadConfig);
blacklist.forEach(function (recipient)
{
this.blacklistContactIds.add(recipient["CONTACT_ID"]);
}, this);
}
return this; return this;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment