From 0fd7bc5c1c04d70b1994fc4b77a4adc932d96f3a Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Sun, 26 Aug 2012 20:07:10 +0200 Subject: [PATCH] fix #1305 and #1309 for 2.1 branch --- app/models/todo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/todo.rb b/app/models/todo.rb index 31cb01b5..488fc32e 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -127,7 +127,7 @@ class Todo < ActiveRecord::Base end def validate - if !show_from.blank? && show_from < user.date + if !show_from.blank? && show_from < user.date && show_from_changed? errors.add("show_from", I18n.t('models.todo.error_date_must_be_future')) end unless @predecessor_array.nil? # Only validate predecessors if they changed