diff --git a/entity/ObjectTree_entity/entityfields/alter/children/insert/onActionProcess.js b/entity/ObjectTree_entity/entityfields/alter/children/insert/onActionProcess.js index a84e5d27e3d72d014a9b67046111649c98ed4099..d71f4187a27a06b8cd729143f27d7c6ecab4ee3a 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 6dad72dac58144e1246329a26405c1de0f7e8845..87ebf6111df6a09ba98f8c23763be72593d1dbea 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