fix for the two issues in #852

* the end date is prefilled with an incorrect formatted date
* if the radio for ends_on is not selected, but a date is entered, tracks incorrectly behaves as if ends_on was checked
This commit is contained in:
Reinier Balt 2009-04-01 13:51:36 +02:00
parent f4f2573f98
commit 239b38cb15
4 changed files with 6 additions and 5 deletions

View file

@ -596,7 +596,7 @@ class RecurringTodo < ActiveRecord::Base
unless self.number_of_occurences.nil?
return self.occurences_count < self.number_of_occurences
else
if self.end_date.nil?
if self.end_date.nil? || self.ends_on == 'no_end_date'
return true
else
case self.target