Merge pull request #1873 from C-Otto/default-context-choice-2.3

(2.3) in tag view, do not use more-or-less random context for the form
This commit is contained in:
Matt Rogers 2015-08-07 20:02:01 -04:00
commit 258528460d

View file

@ -659,9 +659,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