fixed small problem where updating a todo from mobile resulted in an error becase source_view was nil

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@868 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-06-05 11:43:56 +00:00
parent b83a3b311c
commit 549d5e7a97

View file

@ -154,6 +154,7 @@ class TodosController < ApplicationController
end
def update
@source_view = params['_source_view'] || 'todo'
init_data_for_sidebar unless mobile?
@todo.tag_with(params[:tag_list], current_user) if params[:tag_list]
@original_item_context_id = @todo.context_id