From a805b4f0c9f966389a5b737532ecaf426effdfc2 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Tue, 13 Jan 2015 20:17:36 -0600 Subject: [PATCH] Brought in lefnire's change so type cannot be changed on updateTask --- script/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/index.coffee b/script/index.coffee index e214cecf6b..d0d6193cf1 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -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