restore bugfix of Luke that I removed in last commit by mistake.

This commit is contained in:
Reinier Balt 2009-01-08 10:45:19 +01:00
parent cebaf05a7f
commit 037c04e72f

View file

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