mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-13 10:54:23 +01:00
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:
commit
258528460d
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue