From 193e715a54c11f0a0bb6ff617362ea867d632348 Mon Sep 17 00:00:00 2001
From: Benjamin Ulrich <b.ulrich@adito.de>
Date: Tue, 2 Jun 2020 06:57:56 +0000
Subject: [PATCH] 1048690 fix org relation tab action

---
 .../entityfields/alter/children/insert/onActionProcess.js     | 2 +-
 .../entityfields/objectrelationtypeid/valueProcess.js         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/entity/ObjectTree_entity/entityfields/alter/children/insert/onActionProcess.js b/entity/ObjectTree_entity/entityfields/alter/children/insert/onActionProcess.js
index a84e5d27e3d..d71f4187a27 100644
--- a/entity/ObjectTree_entity/entityfields/alter/children/insert/onActionProcess.js
+++ b/entity/ObjectTree_entity/entityfields/alter/children/insert/onActionProcess.js
@@ -25,7 +25,7 @@ if (vars.exists("$sys.selection") && vars.getString("$sys.selection"))
         var params = {
             "ObjectIds_param" : JSON.stringify(parentIds),
             "ObjectTypes_param" : JSON.stringify(parentObjectTypes),
-            "RelationType_param" : vars.get("$field.OBJECTRELATIONTYPEID")
+            "RelationTypes_param" : vars.get("$field.OBJECTRELATIONTYPEID")
         };
 
         neon.openContext("ObjectTree", "ObjectTreeEdit_view", null, neon.OPERATINGSTATE_NEW, params);
diff --git a/entity/ObjectTree_entity/entityfields/objectrelationtypeid/valueProcess.js b/entity/ObjectTree_entity/entityfields/objectrelationtypeid/valueProcess.js
index 6dad72dac58..87ebf6111df 100644
--- a/entity/ObjectTree_entity/entityfields/objectrelationtypeid/valueProcess.js
+++ b/entity/ObjectTree_entity/entityfields/objectrelationtypeid/valueProcess.js
@@ -2,7 +2,7 @@ import("system.neon");
 import("system.vars");
 import("system.result");
 
-if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.RelationType_param") && vars.get("$param.RelationType_param"))
+if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.exists("$param.RelationTypes_param") && vars.get("$param.RelationTypes_param"))
 {
-    result.string(vars.get("$param.RelationType_param"))
+    result.string(vars.get("$param.RelationTypes_param"));
 }
\ No newline at end of file
-- 
GitLab