From 31742e748a6d0de8a5b7416b66b41dcca09e1c77 Mon Sep 17 00:00:00 2001
From: Benjamin Ulrich <b.ulrich@adito.de>
Date: Mon, 19 Jul 2021 06:50:59 +0000
Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-Sales][TicketNr.:=201082748][Fi?=
 =?UTF-8?q?rma:=20Konditions-Eigenschaften=20k=C3=B6nnen=20nicht=20bearbei?=
 =?UTF-8?q?tet=20werden]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 entity/AttributeRelation_entity/grantDeleteProcess.js | 5 +++--
 entity/AttributeRelation_entity/grantUpdateProcess.js | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/entity/AttributeRelation_entity/grantDeleteProcess.js b/entity/AttributeRelation_entity/grantDeleteProcess.js
index 6e445404085..199bf6a157e 100644
--- a/entity/AttributeRelation_entity/grantDeleteProcess.js
+++ b/entity/AttributeRelation_entity/grantDeleteProcess.js
@@ -1,4 +1,5 @@
-import("system.result");
+import("Util_lib");
 import("system.vars");
+import("system.result");
 
-result.object(vars.get("$field.PROTECTED") != "true");
\ No newline at end of file
+result.string(!Utils.toBoolean(vars.getString("$field.PROTECTED")));
\ No newline at end of file
diff --git a/entity/AttributeRelation_entity/grantUpdateProcess.js b/entity/AttributeRelation_entity/grantUpdateProcess.js
index 6e445404085..1bd3067954d 100644
--- a/entity/AttributeRelation_entity/grantUpdateProcess.js
+++ b/entity/AttributeRelation_entity/grantUpdateProcess.js
@@ -1,4 +1,5 @@
-import("system.result");
+import("Util_lib");
 import("system.vars");
+import("system.result");
 
-result.object(vars.get("$field.PROTECTED") != "true");
\ No newline at end of file
+result.string(!Utils.toBoolean(vars.getString("$field.PROTECTED")));
-- 
GitLab