mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-09 00:54:21 +01:00
#300: Removed project from join - fixes problem with null projects.
This commit is contained in:
parent
358f1abba2
commit
a91547265d
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class Todo < ActiveRecord::Base
|
||||||
todo_description = parts[0][0]
|
todo_description = parts[0][0]
|
||||||
context_name = parts[0][1]
|
context_name = parts[0][1]
|
||||||
todos = Todo.all(
|
todos = Todo.all(
|
||||||
:joins => [:project, :context],
|
:joins => :context,
|
||||||
:conditions => {
|
:conditions => {
|
||||||
:description => todo_description,
|
:description => todo_description,
|
||||||
:contexts => {:name => context_name}
|
:contexts => {:name => context_name}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue