From dd21e7466c37430524dda89298bef08c460f9bd8 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Thu, 14 May 2015 15:13:45 +0200 Subject: [PATCH] in tag view, do not use more-or-less random context for the form See #1834 for a discussion --- app/controllers/todos_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index f54669f6..3b5329c6 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -639,9 +639,6 @@ class TodosController < ApplicationController # Set defaults for new_action @initial_tags = @tag_name - unless @not_done_todos.empty? - @context = current_user.contexts.find(@not_done_todos.first.context_id) - end # Set count badge to number of items with this tag @not_done_todos.empty? ? @count = 0 : @count = @not_done_todos.size