From 7f518e4b197bf5ad8603e64b08d4bc390d9e816f Mon Sep 17 00:00:00 2001 From: Simon Leipold <s.leipold@adito.de> Date: Thu, 19 Dec 2019 14:41:31 +0100 Subject: [PATCH] [Projekt: Entwicklung - Neon][TicketNr.: 1048147][Neuanlage von Rollen] --- .../recordcontainers/jdito/contentProcess.js | 5 +++-- .../RoleChildren_entity/recordcontainers/jdito/onInsert.js | 5 +---- .../RoleChildren_entity/recordcontainers/jdito/onUpdate.js | 5 +---- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/entity/RoleChildren_entity/recordcontainers/jdito/contentProcess.js b/entity/RoleChildren_entity/recordcontainers/jdito/contentProcess.js index f60d6a7070..cf0d3c41b7 100644 --- a/entity/RoleChildren_entity/recordcontainers/jdito/contentProcess.js +++ b/entity/RoleChildren_entity/recordcontainers/jdito/contentProcess.js @@ -30,5 +30,6 @@ if (parentRoleName && parentRoleName.indexOf("CUSTOM_") != -1) { return false; }); } - result.object(children); -} \ No newline at end of file +} + +result.object(children); \ No newline at end of file diff --git a/entity/RoleChildren_entity/recordcontainers/jdito/onInsert.js b/entity/RoleChildren_entity/recordcontainers/jdito/onInsert.js index bca1f461df..7fec6ad58d 100644 --- a/entity/RoleChildren_entity/recordcontainers/jdito/onInsert.js +++ b/entity/RoleChildren_entity/recordcontainers/jdito/onInsert.js @@ -6,10 +6,7 @@ import("system.vars"); var parentRoleName = vars.exists("$param.RoleId_param") && vars.get("$param.RoleId_param") -if (parentRoleName) { - if (parentRoleName.indexOf("CUSTOM_") == -1) { - parentRoleName = "CUSTOM_" + parentRoleName; - } +if (parentRoleName && parentRoleName.indexOf("CUSTOM_") != -1) { var alias = SqlUtils.getSystemAlias(); var childRole = vars.get("$local.rowdata")["CHILD_ROLE.value"]; diff --git a/entity/RoleChildren_entity/recordcontainers/jdito/onUpdate.js b/entity/RoleChildren_entity/recordcontainers/jdito/onUpdate.js index 80a5dfd715..3d8ff70633 100644 --- a/entity/RoleChildren_entity/recordcontainers/jdito/onUpdate.js +++ b/entity/RoleChildren_entity/recordcontainers/jdito/onUpdate.js @@ -6,10 +6,7 @@ import("system.vars"); var parentRoleName = vars.exists("$param.RoleId_param") && vars.get("$param.RoleId_param") -if (parentRoleName) { - if (parentRoleName.indexOf("CUSTOM_") == -1) { - parentRoleName = "CUSTOM_" + parentRoleName; - } +if (parentRoleName && parentRoleName.indexOf("CUSTOM_") != -1) { var alias = SqlUtils.getSystemAlias(); var childRole = vars.get("$local.rowdata")["CHILD_ROLE.value"]; -- GitLab