From 0c9cc14d875fab7f25c5f72e0ad155b9d3cfb2e3 Mon Sep 17 00:00:00 2001 From: Daniel Tran <d.tran@adito.de> Date: Tue, 18 Feb 2020 09:26:39 +0100 Subject: [PATCH] #1043987 - Added validation of "$this.value" in if condition. --- .../entityfields/campaignstepid/valueProcess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity/CampaignStep_entity/entityfields/campaignstepid/valueProcess.js b/entity/CampaignStep_entity/entityfields/campaignstepid/valueProcess.js index 86ef789e06..4faa129377 100644 --- a/entity/CampaignStep_entity/entityfields/campaignstepid/valueProcess.js +++ b/entity/CampaignStep_entity/entityfields/campaignstepid/valueProcess.js @@ -3,5 +3,5 @@ import("system.vars"); import("system.result"); import("system.neon"); -if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW) +if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null) result.string(util.getNewUUID()); \ No newline at end of file -- GitLab