missed one taggings.user_id

This commit is contained in:
Reinier Balt 2009-01-08 14:25:06 +01:00
parent 037c04e72f
commit 6017c5d2ed

View file

@ -647,7 +647,7 @@ class TodosController < ApplicationController
@tag = Tag.new(:name => @tag_name)
end
tag_collection = @tag.todos
@not_done_todos = tag_collection.find(:all, :conditions => ['taggings.user_id = ? and state = ?', current_user.id, 'active'])
@not_done_todos = tag_collection.find(:all, :conditions => ['todos.user_id = ? and state = ?', current_user.id, 'active'])
@not_done_todos.empty? ? @down_count = 0 : @down_count = @not_done_todos.size
end
end