1.1 --- a/actions/EventAggregatorNewEvent.py Tue Mar 16 00:58:18 2010 +0100
1.2 +++ b/actions/EventAggregatorNewEvent.py Tue Mar 16 01:06:50 2010 +0100
1.3 @@ -390,9 +390,13 @@
1.4 return 0, _("Event title or template missing.")
1.5
1.6 try:
1.7 - start_day = self._get_input(form, "start-day", 0)
1.8 - start_month = self._get_input(form, "start-month", 0)
1.9 - start_year = self._get_input(form, "start-year", 0)
1.10 + start_day = self._get_input(form, "start-day")
1.11 + start_month = self._get_input(form, "start-month")
1.12 + start_year = self._get_input(form, "start-year")
1.13 +
1.14 + if not start_day or not start_month or not start_year:
1.15 + return 0, _("A start date must be specified.")
1.16 +
1.17 end_day = self._get_input(form, "end-day", start_day)
1.18 end_month = self._get_input(form, "end-month", start_month)
1.19 end_year = self._get_input(form, "end-year", start_year)