# HG changeset patch # User Paul Boddie # Date 1268698010 -3600 # Node ID 7dad8ed8b6bcabbb6f5398f047ccceeac93c69d8 # Parent b8b10d95c10ed4a3e9876fd3c845f14f7aebaf4e Added proper start date validation. diff -r b8b10d95c10e -r 7dad8ed8b6bc actions/EventAggregatorNewEvent.py --- a/actions/EventAggregatorNewEvent.py Tue Mar 16 00:58:18 2010 +0100 +++ b/actions/EventAggregatorNewEvent.py Tue Mar 16 01:06:50 2010 +0100 @@ -390,9 +390,13 @@ return 0, _("Event title or template missing.") try: - start_day = self._get_input(form, "start-day", 0) - start_month = self._get_input(form, "start-month", 0) - start_year = self._get_input(form, "start-year", 0) + start_day = self._get_input(form, "start-day") + start_month = self._get_input(form, "start-month") + start_year = self._get_input(form, "start-year") + + if not start_day or not start_month or not start_year: + return 0, _("A start date must be specified.") + end_day = self._get_input(form, "end-day", start_day) end_month = self._get_input(form, "end-month", start_month) end_year = self._get_input(form, "end-year", start_year)