From 5254aeabd20ba91eb46bbc7e4ec6d8b25935aaa1 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Wed, 17 Jul 2019 14:31:21 +0200
Subject: [PATCH] fix wrong grantDeleteProcess

---
 .../grantDeleteProcess.js                        | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/entity/AttributeRelation_entity/grantDeleteProcess.js b/entity/AttributeRelation_entity/grantDeleteProcess.js
index e407961574c..cb200b5bf98 100644
--- a/entity/AttributeRelation_entity/grantDeleteProcess.js
+++ b/entity/AttributeRelation_entity/grantDeleteProcess.js
@@ -1,8 +1,8 @@
-import("Attribute_lib");
-import("system.result");
-import("system.vars");
-
-var objectType = vars.exists("$param.ObjectType_param") && vars.get("$param.ObjectType_param");
-var rowId = vars.exists("$param.ObjectRowId_param") && vars.get("$param.ObjectRowId_param");
-if (vars.get("$param.GetTree_param") == "true" && rowId)
-    result.object(AttributeRelationUtils.countAttributeRelations(rowId, objectType));
\ No newline at end of file
+import("Attribute_lib");
+import("system.result");
+import("system.vars");
+
+var objectType = vars.exists("$param.ObjectType_param") && vars.get("$param.ObjectType_param");
+var rowId = vars.exists("$param.ObjectRowId_param") && vars.get("$param.ObjectRowId_param");
+if (vars.get("$param.GetTree_param") == "true" && rowId)
+    result.object(AttributeRelationUtils.countAttributeRelations(rowId, objectType) != 0);
\ No newline at end of file
-- 
GitLab