From c1515d0723c0076b9182c1d70936bcbb7ddbaeee Mon Sep 17 00:00:00 2001
From: "v.broens" <v.broens@VBROENS.aditosoftware.local>
Date: Wed, 20 Oct 2021 10:45:33 +0200
Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-Marketing][TicketNr.:=202000951?=
 =?UTF-8?q?][Fehler=20bei=20Kampagnenteilnehmer:=20"exists"=20nicht=20f?=
 =?UTF-8?q?=C3=BCr=20MS=20SQL=20geeignet]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../recordfieldmappings/advertisingban_icon.value/expression.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/entity/CampaignParticipant_entity/recordcontainers/db/recordfieldmappings/advertisingban_icon.value/expression.js b/entity/CampaignParticipant_entity/recordcontainers/db/recordfieldmappings/advertisingban_icon.value/expression.js
index e5f98a118e..127cc8363d 100644
--- a/entity/CampaignParticipant_entity/recordcontainers/db/recordfieldmappings/advertisingban_icon.value/expression.js
+++ b/entity/CampaignParticipant_entity/recordcontainers/db/recordfieldmappings/advertisingban_icon.value/expression.js
@@ -10,4 +10,4 @@ var condition = new CommunicationSettingsCondition()
     .existSettings()
     .buildCondition();
     
-result.string(condition.toString());
\ No newline at end of file
+result.string("case when " + condition.toString() + " then 1 else 0 end");
\ No newline at end of file
-- 
GitLab