This commit is contained in:
Reinier Balt 2014-05-16 16:35:05 +02:00
parent 0f5a11882e
commit 8194ab9d7f

View file

@ -508,7 +508,13 @@ module TodosHelper
end
def todo_moved_out_of_container
return (@project_changed && @group_view_by=='project') || (@context_changed && @group_view_by=='context')
return
# moved from one project container to another
(@project_changed && @group_view_by=='project') ||
# moved from one context container to another
(@context_changed && @group_view_by=='context') ||
# moved from actions-without-project container to another
(@context_changed && @group_view_by=='project' && @todo.project_id.nil?)
end
def update_needs_to_hide_container