fix #1419. A new todo with show_from set should not be added to the homepage

This commit is contained in:
Reinier Balt 2013-06-04 10:28:29 +02:00
parent 2dca8bc0bf
commit 7959a4a069

View file

@ -223,7 +223,7 @@ module TodosHelper
def should_show_new_item
source_view do |page|
page.todo { return !@todo.hidden? }
page.todo { return !@todo.hidden? && !@todo.deferred? }
page.deferred { return @todo.deferred? || @todo.pending? }
page.context {
return @todo.context_id==@default_context.id && ( (@todo.hidden? && @todo.context.hidden?) || (!@todo.hidden?) )