mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-05 08:48:50 +01:00
fix #1313 by checking on NullProject too
This commit is contained in:
parent
6ed3102885
commit
0ce61f0312
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ module TodosHelper
|
|||
if (['project', 'tag', 'stats', 'search'].include?(parent_container_type))
|
||||
str << item_link_to_context( todo )
|
||||
end
|
||||
if (['context', 'tickler', 'tag', 'stats', 'search'].include?(parent_container_type)) && todo.project_id
|
||||
if (['context', 'tickler', 'tag', 'stats', 'search'].include?(parent_container_type)) && !todo.project_id.nil? && !todo.project.is_a?(NullProject)
|
||||
str << item_link_to_project( todo )
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue