From dc1059557eb17ca3b6d96f6f5435f3eef449052f Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Fri, 1 Mar 2019 09:07:16 +0100
Subject: [PATCH] refactoring

---
 .../Person_entity/entityfields/language/onValueChange.js   | 7 +++++--
 .../salutationtitles/children/language_param/code.js       | 7 +++----
 .../salutationtitles/children/salutation_param/code.js     | 7 +++----
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/entity/Person_entity/entityfields/language/onValueChange.js b/entity/Person_entity/entityfields/language/onValueChange.js
index e34861072b2..6d6c773b43e 100644
--- a/entity/Person_entity/entityfields/language/onValueChange.js
+++ b/entity/Person_entity/entityfields/language/onValueChange.js
@@ -6,5 +6,8 @@ var language = vars.get("$field.LANGUAGE");
 var salutation = vars.get("$field.SALUTATION")
 var salLanguage = db.cell("select LANGUAGE from SALUTATION where SALUTATION = '" + salutation  + "'")
 
-if((vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) && salLanguage != language)
-neon.setFieldValue("$field.SALUTATION", "");
\ No newline at end of file
+if((vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_EDIT) 
+        && salLanguage != language)
+{
+    neon.setFieldValue("$field.SALUTATION", "");
+}
\ No newline at end of file
diff --git a/entity/Person_entity/entityfields/salutationtitles/children/language_param/code.js b/entity/Person_entity/entityfields/salutationtitles/children/language_param/code.js
index c3083144b9f..2cb0f4295d8 100644
--- a/entity/Person_entity/entityfields/salutationtitles/children/language_param/code.js
+++ b/entity/Person_entity/entityfields/salutationtitles/children/language_param/code.js
@@ -1,5 +1,4 @@
-import("system.logging");
-import("system.vars");
-import("system.result");
-
+import("system.vars");
+import("system.result");
+
 result.string(vars.get("$field.LANGUAGE"))
\ No newline at end of file
diff --git a/entity/Person_entity/entityfields/salutationtitles/children/salutation_param/code.js b/entity/Person_entity/entityfields/salutationtitles/children/salutation_param/code.js
index 72099ab8ff3..f098580b1e7 100644
--- a/entity/Person_entity/entityfields/salutationtitles/children/salutation_param/code.js
+++ b/entity/Person_entity/entityfields/salutationtitles/children/salutation_param/code.js
@@ -1,5 +1,4 @@
-import("system.vars");
-import("system.result");
-import("system.logging")
-
+import("system.vars");
+import("system.result");
+
 result.string(vars.get("$field.SALUTATION"));
\ No newline at end of file
-- 
GitLab