mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
invalidate cache for both context when you drag-and-drop a todo from
one context to another
This commit is contained in:
parent
5a6a0ffd69
commit
e4cdf75f8c
1 changed files with 1 additions and 0 deletions
|
|
@ -454,6 +454,7 @@ class TodosController < ApplicationController
|
|||
@context = current_user.contexts.find_by_id(params[:todo][:context_id])
|
||||
@todo.context = @context
|
||||
@saved = @todo.save
|
||||
current_user.contexts.find(@original_item_context_id).touch
|
||||
|
||||
@context_changed = true
|
||||
@status_message = t('todos.context_changed', :name => @context.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue