From 4bf5f23003525f06812c55eccd048bc7057dd386 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Wed, 26 Jun 2019 09:51:01 +0200 Subject: [PATCH] refactor --- entity/ObjectTree_entity/grantUpdateProcess.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/entity/ObjectTree_entity/grantUpdateProcess.js b/entity/ObjectTree_entity/grantUpdateProcess.js index 105ebb440b..33e0143ce6 100644 --- a/entity/ObjectTree_entity/grantUpdateProcess.js +++ b/entity/ObjectTree_entity/grantUpdateProcess.js @@ -13,14 +13,7 @@ if (vars.exists("$sys.selection") && vars.getString("$sys.selection")) isObjectRelationNode = typeof uid[2] == "string"; } - if (isObjectRelationNode) - { - result.string(true) - } - else - { - result.string(false) - } + result.object(isObjectRelationNode) } else - result.string(false) \ No newline at end of file + result.object(false) \ No newline at end of file -- GitLab