From 3a73ae13a13eb66292d340d095a28020cc374bba Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Wed, 24 Jul 2019 07:51:01 +0200
Subject: [PATCH] display value processes should use $field now

---
 .../entityfields/responsible/displayValueProcess.js            | 3 +--
 .../entityfields/task_editor_contact_id/displayValueProcess.js | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/entity/Activity_entity/entityfields/responsible/displayValueProcess.js b/entity/Activity_entity/entityfields/responsible/displayValueProcess.js
index 0dde82e7728..4a1a4bf92b1 100644
--- a/entity/Activity_entity/entityfields/responsible/displayValueProcess.js
+++ b/entity/Activity_entity/entityfields/responsible/displayValueProcess.js
@@ -2,7 +2,6 @@ import("system.result");
 import("system.vars");
 import("Contact_lib");
 
-var id = vars.get("$this.value");
 //show the simpel title since this will be later an employee-entry and therefore no organisation is needed
-var title = ContactUtils.getTitleByContactId(id);
+var title = ContactUtils.getTitleByContactId(vars.get("$field.RESPONSIBLE"));
 result.string(title);
\ No newline at end of file
diff --git a/entity/SupportTicket_entity/entityfields/task_editor_contact_id/displayValueProcess.js b/entity/SupportTicket_entity/entityfields/task_editor_contact_id/displayValueProcess.js
index 0dde82e7728..40f8e064ba6 100644
--- a/entity/SupportTicket_entity/entityfields/task_editor_contact_id/displayValueProcess.js
+++ b/entity/SupportTicket_entity/entityfields/task_editor_contact_id/displayValueProcess.js
@@ -2,7 +2,6 @@ import("system.result");
 import("system.vars");
 import("Contact_lib");
 
-var id = vars.get("$this.value");
 //show the simpel title since this will be later an employee-entry and therefore no organisation is needed
-var title = ContactUtils.getTitleByContactId(id);
+var title = ContactUtils.getTitleByContactId(vars.get("$field.TASK_EDITOR_CONTACT_ID"));
 result.string(title);
\ No newline at end of file
-- 
GitLab