From 7732341ffa8b60b4e5b72d481934e92b4dac5dce Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Thu, 7 Nov 2019 12:10:09 +0100
Subject: [PATCH] fix preset overwrites user inputs

---
 .../entityfields/task_priority/valueProcess.js                  | 2 +-
 .../entityfields/task_progress/valueProcess.js                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/entity/SupportTicket_entity/entityfields/task_priority/valueProcess.js b/entity/SupportTicket_entity/entityfields/task_priority/valueProcess.js
index d84677bdf6..3d3345b73b 100644
--- a/entity/SupportTicket_entity/entityfields/task_priority/valueProcess.js
+++ b/entity/SupportTicket_entity/entityfields/task_priority/valueProcess.js
@@ -3,5 +3,5 @@ import("system.neon");
 import("system.vars");
 import("Ticket_lib");
 
-if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
+if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value"))
     result.string(TicketUtils.begin(vars.get("$field.TICKETTYPE")).getDefaultPriority());
\ No newline at end of file
diff --git a/entity/SupportTicket_entity/entityfields/task_progress/valueProcess.js b/entity/SupportTicket_entity/entityfields/task_progress/valueProcess.js
index 854d3c9429..1aa3e72b57 100644
--- a/entity/SupportTicket_entity/entityfields/task_progress/valueProcess.js
+++ b/entity/SupportTicket_entity/entityfields/task_progress/valueProcess.js
@@ -4,5 +4,5 @@ import("system.neon");
 import("system.vars");
 import("KeywordRegistry_basic");
 
-if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
+if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && !vars.get("$this.value"))
     result.string($KeywordRegistry.taskProgress$0());
\ No newline at end of file
-- 
GitLab