From 1a9d482fc996b542acf4743ac77d834117413a90 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 18 Oct 2012 16:47:41 +0000 Subject: [PATCH] Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10671 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index 8537ef699..9c8123a4d 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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