a previous commit introduced a bug where hiding a project did not hide the todos in it. Fixes #832

This commit is contained in:
Reinier Balt 2009-01-24 22:13:19 +01:00
parent 8076f4fe72
commit 07426ebe54
5 changed files with 25 additions and 31 deletions

View file

@ -57,8 +57,6 @@ class Todo < ActiveRecord::Base
end
end
before_validation :update_state_from_project
def update_state_from_project
if state == 'project_hidden' and !project.hidden?
self.state = 'active'