From 2a9c504fdccedde66a188b0811876d8fcf0dfe27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Tufr=C3=B3?= Date: Tue, 3 Aug 2010 14:07:58 -0300 Subject: [PATCH] Fixed bug in taskboard controller with the taskboard team color. --- app/controllers/taskboard_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/taskboard_controller.rb b/app/controllers/taskboard_controller.rb index 38d0527..c862b46 100644 --- a/app/controllers/taskboard_controller.rb +++ b/app/controllers/taskboard_controller.rb @@ -15,7 +15,7 @@ def index end @team = @project.team_including(current_user) - @color = @team.color ? @team.color : '0C82EB' + @color = (@team && @team.color) ? @team.color : '0C82EB' @projects = [@project] @users = @project.users end