From e87b4453b831cef49a040b8d1a1179eaa54c3f40 Mon Sep 17 00:00:00 2001
From: "S.Listl" <S.Listl@SLISTL.aditosoftware.local>
Date: Fri, 25 Oct 2019 08:31:30 +0000
Subject: [PATCH] ClassificationScore translate title in view mode

(cherry picked from commit d6ee0b9a9d8c3e578348328c3ff3d9322a79b61d)
---
 .../ClassificationScore_entity.aod                         | 1 +
 .../entityfields/title/displayValueProcess.js              | 7 +++++++
 2 files changed, 8 insertions(+)
 create mode 100644 entity/ClassificationScore_entity/entityfields/title/displayValueProcess.js

diff --git a/entity/ClassificationScore_entity/ClassificationScore_entity.aod b/entity/ClassificationScore_entity/ClassificationScore_entity.aod
index 1c025863883..232ce158d2b 100644
--- a/entity/ClassificationScore_entity/ClassificationScore_entity.aod
+++ b/entity/ClassificationScore_entity/ClassificationScore_entity.aod
@@ -19,6 +19,7 @@
       <name>TITLE</name>
       <title>Title</title>
       <mandatory v="true" />
+      <displayValueProcess>%aditoprj%/entity/ClassificationScore_entity/entityfields/title/displayValueProcess.js</displayValueProcess>
     </entityField>
     <entityField>
       <name>CLASSIFICATIONTYPE_ID</name>
diff --git a/entity/ClassificationScore_entity/entityfields/title/displayValueProcess.js b/entity/ClassificationScore_entity/entityfields/title/displayValueProcess.js
new file mode 100644
index 00000000000..e1dfc604642
--- /dev/null
+++ b/entity/ClassificationScore_entity/entityfields/title/displayValueProcess.js
@@ -0,0 +1,7 @@
+import("system.translate");
+import("system.neon");
+import("system.vars");
+import("system.result");
+
+if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW)
+    result.string(translate.text(vars.get("$field.TITLE")));
\ No newline at end of file
-- 
GitLab