#300: Removed project from join - fixes problem with null projects.

This commit is contained in:
Henrik Bohre 2009-08-21 15:32:38 +02:00 committed by Eric Allen
parent 358f1abba2
commit a91547265d

View file

@ -101,7 +101,7 @@ class Todo < ActiveRecord::Base
todo_description = parts[0][0]
context_name = parts[0][1]
todos = Todo.all(
:joins => [:project, :context],
:joins => :context,
:conditions => {
:description => todo_description,
:contexts => {:name => context_name}