mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
fix #1419. A new todo with show_from set should not be added to the homepage
This commit is contained in:
parent
2dca8bc0bf
commit
7959a4a069
1 changed files with 1 additions and 1 deletions
|
|
@ -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?) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue