Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10671 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1737552eca
commit
1a9d482fc9
|
@ -533,7 +533,7 @@ class Issue < ActiveRecord::Base
|
|||
errors.add :start_date, :not_a_date
|
||||
end
|
||||
|
||||
if self.due_date and self.start_date and self.due_date < self.start_date
|
||||
if due_date && start_date && due_date < start_date
|
||||
errors.add :due_date, :greater_than_start_date
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue