diff --git a/process/MarketingCondition_lib/process.js b/process/MarketingCondition_lib/process.js index 3303f7733cb4d16d08df53ee2199b26de4bc367e..daad96cdd66b454d932358793322e704b7886d49 100644 --- a/process/MarketingCondition_lib/process.js +++ b/process/MarketingCondition_lib/process.js @@ -56,7 +56,7 @@ CommunicationSettingsCondition.prototype.medium = function (pMedium, pAddressSql this._channelType = $KeywordRegistry.communicationChannelType$communication(); this._medium = pMedium; if (pAddressSql) - this._channelIdSql = pAddressSql; + this._channelIdSql = "( "+ pAddressSql + " )"; return this; } @@ -80,7 +80,7 @@ CommunicationSettingsCondition.prototype.emails = function (pAddressSql) CommunicationSettingsCondition.prototype.address = function (pAddressSql) { this._channelType = $KeywordRegistry.communicationChannelType$address(); - this._channelIdSql = pAddressSql; + this._channelIdSql = "( "+ pAddressSql + " )"; return this; }