fix autocompletion for editing of recurring todos

This commit is contained in:
Reinier Balt 2008-08-01 16:46:57 +02:00
parent 9acb01e9cb
commit 566cdf8049
2 changed files with 16 additions and 17 deletions

View file

@ -343,7 +343,6 @@ class TodosController < ApplicationController
@hidden_todos = current_user.todos.find(:all,
:include => [:taggings, :tags, :context],
:conditions => ['tags.name = ? AND (todos.state = ? OR (contexts.hide = ? AND todos.state = ?))', @tag_name, 'project_hidden', true, 'active'])
#@hidden_todos = tag_collection.find(:all, :conditions => ['taggings.user_id = ? and state = ?', current_user.id, 'project_hidden'])
@contexts = current_user.contexts.find(:all)
@contexts_to_show = @contexts.reject {|x| x.hide? }