Committed a fix by karmajunkie: "fixed a small bug wherein @contexts wasn’t getting set in ProjectController.show for use in the shared/_add_new_item partial."

This commit is contained in:
bsag 2009-01-11 16:01:52 +00:00
parent 3554dd8dd0
commit 99c3aecc04

View file

@ -43,6 +43,7 @@ class ProjectsController < ApplicationController
@contexts = current_user.contexts(true)
init_data_for_sidebar unless mobile?
@projects = current_user.projects
@contexts = current_user.contexts
@page_title = "TRACKS::Project: #{@project.name}"
@project.todos.send :with_scope, :find => { :include => [:context] } do
@not_done = @project.not_done_todos(:include_project_hidden_todos => true)