From e8c3ba2e284203846c2adee6fed613294784e763 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 18 Jul 2012 10:37:59 +0200 Subject: [PATCH] fix #1313 by checking on NullProject too --- app/helpers/todos_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 684193e1..daad4fff 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -170,7 +170,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