summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
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