mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 23:54:07 +01:00
fix regression and further cleanups of todo model
This commit is contained in:
parent
906ff11633
commit
833297b355
2 changed files with 17 additions and 26 deletions
|
|
@ -1517,7 +1517,7 @@ class TodosController < ApplicationController
|
|||
@prefs = prefs
|
||||
@attributes = params['request'] && params['request']['todo'] || params['todo']
|
||||
|
||||
if @attributes[:tags]
|
||||
if @attributes && @attributes[:tags]
|
||||
# the REST api may use <tags> which will collide with tags association, so rename tags to add_tags
|
||||
add_tags = @attributes[:tags]
|
||||
@attributes.delete :tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue