Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10671 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-10-18 16:47:41 +00:00
parent 1737552eca
commit 1a9d482fc9
1 changed files with 1 additions and 1 deletions

View File

@ -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