From 037c04e72f42b2d3476f0b2db6584fc4683be930 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Thu, 8 Jan 2009 10:45:19 +0100 Subject: [PATCH] restore bugfix of Luke that I removed in last commit by mistake. --- app/controllers/todos_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index 2e6a1b5d..456da083 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -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?