invalidate cache for both context when you drag-and-drop a todo from

one context to another
This commit is contained in:
Reinier Balt 2013-02-13 09:07:52 +01:00
parent 5a6a0ffd69
commit e4cdf75f8c

View file

@ -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)