From 0bf83f7dc7fc08ff01488f9aef123f3d92001f63 Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Thu, 21 Nov 2019 14:04:20 +0000 Subject: [PATCH] notification: fixed error when there was no linkinformation available (cherry picked from commit c0af5de75c5e508ffe63ea97be44785458d67913) --- .../entityfields/linkcontext/valueProcess.js | 3 ++- entity/Notification_entity/entityfields/linkid/valueProcess.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/entity/Notification_entity/entityfields/linkcontext/valueProcess.js b/entity/Notification_entity/entityfields/linkcontext/valueProcess.js index 8a35b27960..7685139506 100644 --- a/entity/Notification_entity/entityfields/linkcontext/valueProcess.js +++ b/entity/Notification_entity/entityfields/linkcontext/valueProcess.js @@ -3,4 +3,5 @@ import("system.result"); import("system.text"); var context = text.decodeMS(vars.get("$field.LINKINFO"))[0]; -result.string(context); \ No newline at end of file +if (context) + result.string(context); \ No newline at end of file diff --git a/entity/Notification_entity/entityfields/linkid/valueProcess.js b/entity/Notification_entity/entityfields/linkid/valueProcess.js index 3392320882..c8950049bf 100644 --- a/entity/Notification_entity/entityfields/linkid/valueProcess.js +++ b/entity/Notification_entity/entityfields/linkid/valueProcess.js @@ -3,4 +3,5 @@ import("system.result"); import("system.text"); var id = text.decodeMS(vars.get("$field.LINKINFO"))[1]; -result.string(id); \ No newline at end of file +if (id) + result.string(id); \ No newline at end of file -- GitLab