mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
creating todos using xml/rest was broken. This fixes it
This commit is contained in:
parent
9c82e9c974
commit
9a243b015a
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ class TodosController < ApplicationController
|
|||
@source_view = params['_source_view'] || 'todo'
|
||||
@tag_name = params['_tag_name']
|
||||
|
||||
unless params[:todo][:multiple_todos].nil?
|
||||
is_multiple = params[:todo] && params[:todo][:multiple_todos] && !params[:todo][:multiple_todos].nil?
|
||||
if is_multiple
|
||||
create_multiple
|
||||
else
|
||||
p = TodoCreateParamsHelper.new(params, prefs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue