Skip to content
Snippets Groups Projects
Commit 59c32485 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

support ticket / task fixes

parent 39d335ae
No related branches found
No related tags found
No related merge requests found
......@@ -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);
//show the simpel title since this is an employee-entry and therefore no organisation is needed
var title = ContactUtils.getTitleByContactId(vars.get("$field.TASK_REQUESTOR_CONTACT_ID"));
result.string(title);
\ No newline at end of file
......@@ -3,5 +3,5 @@ import("system.neon");
import("system.vars");
import("Employee_lib");
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.value") == null)
result.string(EmployeeUtils.getCurrentContactId());
\ No newline at end of file
import("system.result");
import("Person_lib");
var subSql = PersUtils.getResolvingDisplaySubSql("TASK.EDITOR_CONTACT_ID");
result.string(subSql);
\ No newline at end of file
import("system.result");
import("Person_lib");
var subSql = PersUtils.getResolvingDisplaySubSql("TASK.REQUESTOR_CONTACT_ID");
result.string(subSql);
\ No newline at end of file
import("system.result");
import("Person_lib");
//TODO: try to find a better solution for this -> #TITLE-mechanic when available
var subSql = PersUtils.getResolvingDisplaySubSql("TASK.EDITOR_CONTACT_ID");
result.string(subSql);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment