From b38fea6847921adbc953562305d4a5a9619c0ec0 Mon Sep 17 00:00:00 2001
From: Simon Leipold <s.leipold@adito.de>
Date: Thu, 18 Feb 2021 13:48:49 +0100
Subject: [PATCH] fixed bug which was caused by refactoring parameter RoleName

---
 entity/Role_entity/Role_entity.aod                          | 6 ++++++
 .../children/rolename_param/valueProcess.js                 | 4 ++++
 2 files changed, 10 insertions(+)
 create mode 100644 entity/Role_entity/entityfields/theirpermissions/children/rolename_param/valueProcess.js

diff --git a/entity/Role_entity/Role_entity.aod b/entity/Role_entity/Role_entity.aod
index ab7ded94bc..956b66e51d 100644
--- a/entity/Role_entity/Role_entity.aod
+++ b/entity/Role_entity/Role_entity.aod
@@ -46,6 +46,12 @@
         <entityName>PermissionDetail_entity</entityName>
         <fieldName>Permissions</fieldName>
       </dependency>
+      <children>
+        <entityParameter>
+          <name>RoleName_param</name>
+          <valueProcess>%aditoprj%/entity/Role_entity/entityfields/theirpermissions/children/rolename_param/valueProcess.js</valueProcess>
+        </entityParameter>
+      </children>
     </entityConsumer>
     <entityConsumer>
       <name>PermissionOverviews</name>
diff --git a/entity/Role_entity/entityfields/theirpermissions/children/rolename_param/valueProcess.js b/entity/Role_entity/entityfields/theirpermissions/children/rolename_param/valueProcess.js
new file mode 100644
index 0000000000..7b3054d190
--- /dev/null
+++ b/entity/Role_entity/entityfields/theirpermissions/children/rolename_param/valueProcess.js
@@ -0,0 +1,4 @@
+import("system.vars");
+import("system.result");
+
+result.string(vars.get("$field.ROLENAME"));
\ No newline at end of file
-- 
GitLab