Merge branch 'develop' into api-v3

This commit is contained in:
Matteo Pagliazzi
2016-03-10 18:30:09 +01:00
157 changed files with 8200 additions and 7329 deletions

View File

@@ -308,6 +308,12 @@ api.updateTask = {
throw new NotFound(res.t('taskNotFound'));
}
// If reminders are updated -> replace the original ones
if (req.body.reminders) {
task.reminders = req.body.reminders;
delete req.body.reminders;
}
// If checklist is updated -> replace the original one
if (req.body.checklist) {
task.checklist = req.body.checklist;