Skip to content

Commit

Permalink
Auswahlbox für Geschlecht jetzt auch als Pflichtfeld markiert (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchachtnerTh authored Jul 23, 2024
1 parent dcf2d7e commit 6aa99c7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public DateInput getGeburtsdatum() throws RemoteException
Date d = getKursteilnehmer().getGeburtsdatum();
this.geburtsdatum = new DateInput(d, new JVDateFormatTTMMJJJJ());
this.geburtsdatum.setTitle("Geburtsdatum");
this.geburtsdatum.setText(("Bitte Geburtsdatum wählen"));
this.geburtsdatum.setText("Bitte Geburtsdatum wählen");
this.geburtsdatum.setMandatory(true);
return geburtsdatum;
}
Expand Down
9 changes: 6 additions & 3 deletions src/de/jost_net/JVerein/gui/input/GeschlechtInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ private static ArrayList<GeschlechtObject> init() throws RemoteException
public Object getValue()
{
GeschlechtObject o = (GeschlechtObject) super.getValue();
if (o == null)
if (null == o)
{
return MAENNLICH;
return null;
}
else
{
return o.geschlecht;
}
return o.geschlecht;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/de/jost_net/JVerein/server/KursteilnehmerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ private void plausi() throws RemoteException, ApplicationException
{
throw new ApplicationException("Bitte Geburtsdatum eingeben");
}
if (getGeschlecht() == null)
{
throw new ApplicationException("Bitte Geschlecht eingeben");
}
}
if (getIban() == null || getIban().length() == 0)
{
Expand Down

0 comments on commit 6aa99c7

Please sign in to comment.