mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-28 03:36:11 +01:00
a previous commit introduced a bug where hiding a project did not hide the todos in it. Fixes #832
This commit is contained in:
parent
8076f4fe72
commit
07426ebe54
5 changed files with 25 additions and 31 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue