mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Fixed bug where adding tag to Todo via Ajax inline edit didn't reflect tag changes immediately.
This commit is contained in:
parent
c7d1881472
commit
00eff7e877
1 changed files with 4 additions and 1 deletions
|
|
@ -175,7 +175,10 @@ class TodosController < ApplicationController
|
|||
def update
|
||||
@source_view = params['_source_view'] || 'todo'
|
||||
init_data_for_sidebar unless mobile?
|
||||
@todo.tag_with(params[:tag_list]) if params[:tag_list]
|
||||
if params[:tag_list]
|
||||
@todo.tag_with(params[:tag_list])
|
||||
@todo.tags(true) #force a reload for proper rendering
|
||||
end
|
||||
@original_item_context_id = @todo.context_id
|
||||
@original_item_project_id = @todo.project_id
|
||||
@original_item_was_deferred = @todo.deferred?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue