mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 15:58:50 +01:00
in tag view, do not use more-or-less random context for the form
See #1834 for a discussion
This commit is contained in:
parent
556c68c2e6
commit
dd21e7466c
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue