From d7bf49492d2f2acd814e16b9e6812044622e8298 Mon Sep 17 00:00:00 2001 From: nils Date: Sat, 11 Jan 2025 18:57:49 +0100 Subject: [PATCH] Formularfeld Dropdown sortieren --- src/de/jost_net/JVerein/gui/control/FormularfeldControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/jost_net/JVerein/gui/control/FormularfeldControl.java b/src/de/jost_net/JVerein/gui/control/FormularfeldControl.java index ff5f15a2b..d4da98cc3 100644 --- a/src/de/jost_net/JVerein/gui/control/FormularfeldControl.java +++ b/src/de/jost_net/JVerein/gui/control/FormularfeldControl.java @@ -18,6 +18,7 @@ import java.rmi.RemoteException; import java.util.ArrayList; +import java.util.Collections; import com.itextpdf.text.pdf.BaseFont; @@ -40,7 +41,6 @@ import de.willuhn.jameica.gui.input.IntegerInput; import de.willuhn.jameica.gui.input.SelectInput; import de.willuhn.jameica.gui.input.TextInput; - import de.willuhn.logging.Logger; public class FormularfeldControl extends FormularPartControl @@ -277,6 +277,7 @@ public SelectInput getName() throws Exception namen.add(Einstellungen.ZUSATZFELD_PRE + zusatzfeld.getName()); } } + Collections.sort(namen); name = new SelectInput(namen, getFormularfeld().getName()); return name; }