mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-02 02:50:16 +01:00
fix #1098 where adding a todo to a hidden context in that hidden context page would not show the todo
This commit is contained in:
parent
97fae98791
commit
83b5717460
3 changed files with 20 additions and 13 deletions
|
|
@ -224,7 +224,8 @@ module TodosHelper
|
|||
page.todo { return !@todo.hidden? }
|
||||
page.deferred { return @todo.deferred? || @todo.pending? }
|
||||
page.context {
|
||||
return @todo.context_id==@default_context.id && (!@todo.hidden? && !@todo.context.hidden?)
|
||||
logger.debug "ci=#{@todo.context_id} dci=#{@default_context.id} th=#{@todo.hidden?} tch=#{@todo.context.hidden?}"
|
||||
return @todo.context_id==@default_context.id && ( (@todo.hidden? && @todo.context.hidden?) || (!@todo.hidden?) )
|
||||
}
|
||||
page.tag {
|
||||
return ( (@todo.pending? && @todo.has_tag?(@tag_name)) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue