mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
parent
0ce61f0312
commit
0fd7bc5c1c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue