### Eclipse Workspace Patch 1.0 #P jverein diff --git src/de/jost_net/JVerein/gui/control/KursteilnehmerControl.java src/de/jost_net/JVerein/gui/control/KursteilnehmerControl.java index d96ece8..6152c08 100644 --- src/de/jost_net/JVerein/gui/control/KursteilnehmerControl.java +++ src/de/jost_net/JVerein/gui/control/KursteilnehmerControl.java @@ -313,6 +313,7 @@ this.mandatdatum.setName("Datum des Mandats"); this.mandatdatum.setText("Bitte Datum des Mandats wählen"); mandatdatum.setName("Datum des Mandats"); + mandatdatum.setMandatory(true); return mandatdatum; } @@ -388,7 +389,10 @@ this.geburtsdatum = new DateInput(d, new JVDateFormatTTMMJJJJ()); this.geburtsdatum.setTitle("Geburtsdatum"); this.geburtsdatum.setText(("Bitte Geburtsdatum wählen")); - this.geburtsdatum.setMandatory(true); + if (Einstellungen.getEinstellung().getGeburtsdatumPflicht()) + { + this.geburtsdatum.setMandatory(true); + } return geburtsdatum; } diff --git src/de/jost_net/JVerein/server/DDLTool/Updates/Update0396.java src/de/jost_net/JVerein/server/DDLTool/Updates/Update0396.java new file mode 100644 index 0000000..c9d8b56 --- /dev/null +++ src/de/jost_net/JVerein/server/DDLTool/Updates/Update0396.java @@ -0,0 +1,48 @@ +/********************************************************************** + * JVerein - Mitgliederverwaltung und einfache Buchhaltung für Vereine + * Copyright (c) by Heiner Jostkleigrewe + * Copyright (c) 2015 by Thomas Hooge + * Main Project: heiner@jverein.dem http://www.jverein.de/ + * Module Author: thomas@hoogi.de, http://www.hoogi.de/ + * + * This file is part of JVerein. + * + * JVerein is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * JVerein is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + **********************************************************************/ +package de.jost_net.JVerein.server.DDLTool.Updates; + +import java.sql.Connection; + +import de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate; +import de.jost_net.JVerein.server.DDLTool.Column; +import de.willuhn.util.ApplicationException; +import de.willuhn.util.ProgressMonitor; + +public class Update0396 extends AbstractDDLUpdate +{ + public Update0396(String driver, ProgressMonitor monitor, Connection conn) + { + super(driver, monitor, conn); + } + + public void run() throws ApplicationException + { + + // Kontonummer ist kein Pflichtfeld mehr und darf daher Null werden + execute(alterColumn("kursteilnehmer", new Column("konto", + COLTYPE.VARCHAR, 12, null, false, false))); + + } +} diff --git src/de/jost_net/JVerein/server/KursteilnehmerImpl.java src/de/jost_net/JVerein/server/KursteilnehmerImpl.java index 2cde9ee..7337e19 100644 --- src/de/jost_net/JVerein/server/KursteilnehmerImpl.java +++ src/de/jost_net/JVerein/server/KursteilnehmerImpl.java @@ -91,7 +91,7 @@ { throw new ApplicationException("Bitte Datum des Mandats eingeben"); } - if (getGeburtsdatum() == null) + if ((getGeburtsdatum() == null) && Einstellungen.getEinstellung().getGeburtsdatumPflicht()) { throw new ApplicationException("Bitte Geburtsdatum eingeben"); }