From 9a14a4391e6daf3a6a6e57a71c87af2dfa28f34e Mon Sep 17 00:00:00 2001
From: Andre Loreth <a.loreth@adito.de>
Date: Mon, 12 Aug 2019 10:26:33 +0200
Subject: [PATCH] ObjectRelationType: also set type2enabled_proxy on empty
 string

---
 .../entityfields/type2enabled_proxy/valueProcess.js             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/entity/ObjectRelationType_entity/entityfields/type2enabled_proxy/valueProcess.js b/entity/ObjectRelationType_entity/entityfields/type2enabled_proxy/valueProcess.js
index 18be71e8d7..76cd3a259e 100644
--- a/entity/ObjectRelationType_entity/entityfields/type2enabled_proxy/valueProcess.js
+++ b/entity/ObjectRelationType_entity/entityfields/type2enabled_proxy/valueProcess.js
@@ -1,5 +1,5 @@
 import("system.vars");
 import("system.result");
 
-if (vars.get("$this.value") == null)
+if (vars.get("$this.value") == null || vars.get("$this.value") == "")
     result.string(vars.get("$field.DIRECTION") == "same" ? 0 : 1);
\ No newline at end of file
-- 
GitLab