From 9d1adce53012ddeae12e63dc7bbff7c6075b46b5 Mon Sep 17 00:00:00 2001
From: Markus Escher <m.escher@adito.de>
Date: Wed, 17 Apr 2019 15:25:59 +0200
Subject: [PATCH] add linkedContext for ObjectTree

---
 entity/ObjectTree_entity/ObjectTree_entity.aod                 | 1 +
 .../entityfields/title/linkedContextProcess.js                 | 3 +++
 2 files changed, 4 insertions(+)
 create mode 100644 entity/ObjectTree_entity/entityfields/title/linkedContextProcess.js

diff --git a/entity/ObjectTree_entity/ObjectTree_entity.aod b/entity/ObjectTree_entity/ObjectTree_entity.aod
index 620cadd28d..b96830a647 100644
--- a/entity/ObjectTree_entity/ObjectTree_entity.aod
+++ b/entity/ObjectTree_entity/ObjectTree_entity.aod
@@ -67,6 +67,7 @@
     <entityField>
       <name>TITLE</name>
       <title>Object</title>
+      <linkedContextProcess>%aditoprj%/entity/ObjectTree_entity/entityfields/title/linkedContextProcess.js</linkedContextProcess>
       <searchable v="false" />
     </entityField>
     <entityField>
diff --git a/entity/ObjectTree_entity/entityfields/title/linkedContextProcess.js b/entity/ObjectTree_entity/entityfields/title/linkedContextProcess.js
new file mode 100644
index 0000000000..c493945bed
--- /dev/null
+++ b/entity/ObjectTree_entity/entityfields/title/linkedContextProcess.js
@@ -0,0 +1,3 @@
+import("system.vars");
+import("system.result");
+result.string(vars.get("$field.TARGET_CONTEXT"));
\ No newline at end of file
-- 
GitLab