From c0af5de75c5e508ffe63ea97be44785458d67913 Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Thu, 21 Nov 2019 15:04:20 +0100 Subject: [PATCH] notification: fixed error when there was no linkinformation available --- .../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 8a35b279603..76851395067 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 33923208821..c8950049bfc 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