Brought in lefnire's change so type cannot be changed on updateTask

This commit is contained in:
Blade Barringer
2015-01-13 20:17:36 -06:00
parent b0fc2a8e7c
commit a805b4f0c9
+1 -1
View File
@@ -553,7 +553,7 @@ api.wrap = (user, main=true) ->
updateTask: (req, cb) ->
return cb?({code:404,message:i18n.t('messageTaskNotFound', req.language)}) unless task = user.tasks[req.params?.id]
_.merge task, _.omit(req.body,['checklist','id'])
_.merge task, _.omit(req.body,['checklist','id', 'type'])
task.checklist = req.body.checklist if req.body.checklist
task.markModified? 'tags'
cb? null, task