From d2ce540ca57b51d5c9ed832e99ffe8636daf8909 Mon Sep 17 00:00:00 2001 From: Simon Leipold <s.leipold@adito.de> Date: Fri, 27 Aug 2021 14:41:18 +0200 Subject: [PATCH] =?UTF-8?q?[Projekt:=20Entwicklung=20-=20Neon][TicketNr.:?= =?UTF-8?q?=201086526][Speichern=20nach=20Bearbeiten=20einer=20CUSTOM=20Ro?= =?UTF-8?q?lle=20f=C3=BChrt=20zu=20eingefrorenem=20Web-Client=20und=20Bere?= =?UTF-8?q?chtigungsfehler=20im=20Log=20=20]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entity/Role_entity/entityfields/uid/valueProcess.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/entity/Role_entity/entityfields/uid/valueProcess.js b/entity/Role_entity/entityfields/uid/valueProcess.js index 4a9b27cc96..08a5eb0e28 100644 --- a/entity/Role_entity/entityfields/uid/valueProcess.js +++ b/entity/Role_entity/entityfields/uid/valueProcess.js @@ -1,4 +1,11 @@ +import("system.neon"); import("system.vars"); import("system.result"); -result.string("CUSTOM_" + vars.get("$field.ROLENAME")); \ No newline at end of file +var prefix = "CUSTOM_"; +var uid = vars.get("$field.ROLENAME"); + +if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_NEW) + uid = prefix + uid; + +result.string(uid); \ No newline at end of file -- GitLab