From 63f37d96c55f71296098443daf32129be8b4191a Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Wed, 22 May 2019 13:58:13 +0200
Subject: [PATCH] classificationgroup dropdown

---
 .../Classification_entity.aod                   |  4 +++-
 .../classificationgroup/dropDownProcess.js      |  4 ++++
 language/_____LANGUAGE_de/_____LANGUAGE_de.aod  | 17 ++++-------------
 language/_____LANGUAGE_en/_____LANGUAGE_en.aod  |  9 ---------
 4 files changed, 11 insertions(+), 23 deletions(-)
 create mode 100644 entity/Classification_entity/entityfields/classificationgroup/dropDownProcess.js

diff --git a/entity/Classification_entity/Classification_entity.aod b/entity/Classification_entity/Classification_entity.aod
index 3d13c0faa61..f0bf63ede50 100644
--- a/entity/Classification_entity/Classification_entity.aod
+++ b/entity/Classification_entity/Classification_entity.aod
@@ -78,9 +78,11 @@
     </entityField>
     <entityField>
       <name>CLASSIFICATIONGROUP</name>
-      <title>Classification number</title>
+      <title>Classification group</title>
       <contentType>TEXT</contentType>
       <mandatoryProcess>%aditoprj%/entity/Classification_entity/entityfields/classificationgroup/mandatoryProcess.js</mandatoryProcess>
+      <dropDownProcess>%aditoprj%/entity/Classification_entity/entityfields/classificationgroup/dropDownProcess.js</dropDownProcess>
+      <textInputAllowed v="true" />
       <groupable v="true" />
       <stateProcess>%aditoprj%/entity/Classification_entity/entityfields/classificationgroup/stateProcess.js</stateProcess>
       <displayValueProcess>%aditoprj%/entity/Classification_entity/entityfields/classificationgroup/displayValueProcess.js</displayValueProcess>
diff --git a/entity/Classification_entity/entityfields/classificationgroup/dropDownProcess.js b/entity/Classification_entity/entityfields/classificationgroup/dropDownProcess.js
new file mode 100644
index 00000000000..bd94927bdab
--- /dev/null
+++ b/entity/Classification_entity/entityfields/classificationgroup/dropDownProcess.js
@@ -0,0 +1,4 @@
+import("system.db");
+import("system.result");
+
+result.object(db.table("select distinct CLASSIFICATIONGROUP, CLASSIFICATIONGROUP from CLASSIFICATIONTYPE order by CLASSIFICATIONGROUP"));
\ No newline at end of file
diff --git a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod
index 8138d06a7d9..692bbec6aac 100644
--- a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod
+++ b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod
@@ -22,6 +22,10 @@
       <key>Notifications</key>
       <value>Benachrichtigungen</value>
     </entry>
+    <entry>
+      <key>Classification group</key>
+      <value>Klassifizierungsgruppe</value>
+    </entry>
     <entry>
       <key>Add to Campaign</key>
       <value>Zu Kampagne hinzufügen</value>
@@ -4953,9 +4957,6 @@
       <key>Runtime</key>
       <value>Laufzeit</value>
     </entry>
-    <entry>
-      <key>Street</key>
-    </entry>
     <entry>
       <key>Fix costs</key>
       <value>Fixkosten</value>
@@ -4968,16 +4969,6 @@
       <key>Per participant</key>
       <value>Pro Teilnehmer</value>
     </entry>
-    <entry>
-      <key>To buildingnumber</key>
-    </entry>
-    <entry>
-      <key>From buildingnumber</key>
-    </entry>
-    <entry>
-      <key>Per participant</key>
-      <value>Pro Teilnehmer</value>
-    </entry>
     <entry>
       <key>Predecessor</key>
       <value>Vorgänger</value>
diff --git a/language/_____LANGUAGE_en/_____LANGUAGE_en.aod b/language/_____LANGUAGE_en/_____LANGUAGE_en.aod
index 9d7e8cb5a17..9de44a83146 100644
--- a/language/_____LANGUAGE_en/_____LANGUAGE_en.aod
+++ b/language/_____LANGUAGE_en/_____LANGUAGE_en.aod
@@ -4036,9 +4036,6 @@
     <entry>
       <key>huhu</key>
     </entry>
-    <entry>
-      <key>Street</key>
-    </entry>
     <entry>
       <key>Fix costs</key>
     </entry>
@@ -4048,12 +4045,6 @@
     <entry>
       <key>Costs per participant</key>
     </entry>
-    <entry>
-      <key>To buildingnumber</key>
-    </entry>
-    <entry>
-      <key>From buildingnumber</key>
-    </entry>
     <entry>
       <key>Per participant</key>
     </entry>
-- 
GitLab