Fixes the 500 error when clicking a tag from project view. Fixes #583. Also removes two queries that are called twice

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@612 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2007-10-06 20:07:25 +00:00
parent 765f51c44b
commit 1dff683ea7
2 changed files with 1 additions and 3 deletions

View file

@ -26,8 +26,6 @@ class ProjectsController < ApplicationController
def show
init_data_for_sidebar
@projects = current_user.projects
@contexts = current_user.contexts
@page_title = "TRACKS::Project: #{@project.name}"
@not_done = @project.not_done_todos(:include_project_hidden_todos => true)
@deferred = @project.deferred_todos

View file

@ -73,7 +73,7 @@ module TodosHelper
def tag_list
tags_except_starred = @todo.tags.reject{|t| t.name == Todo::STARRED_TAG_NAME}
tag_list = tags_except_starred.collect{|t| "<span class=\"tag #{t.name.gsub(' ','-')}\">" + link_to(t.name, :action => "tag", :id => t.name) + "</span>"}.join('')
tag_list = tags_except_starred.collect{|t| "<span class=\"tag #{t.name.gsub(' ','-')}\">" + link_to(t.name, :controller => "todos", :action => "tag", :id => t.name) + "</span>"}.join('')
"<span class='tags'>#{tag_list}</span>"
end