mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 13:58:49 +01:00
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:
parent
b83a3b311c
commit
549d5e7a97
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue