mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
fix #1419 for master too: do not show new todo that was added with show_from set
This commit is contained in:
parent
f8300de7df
commit
ee9951403e
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ module TodosHelper
|
|||
def should_show_new_item(todo = @todo)
|
||||
return false if todo.nil?
|
||||
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 show_todo_on_current_context_page && todo_should_not_be_hidden_on_context_page }
|
||||
page.tag { return todo.has_tag?(@tag_name) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue