fix for bb23883: task was created twice if full form was used

This commit is contained in:
maxpozdeev 2022-09-09 19:41:53 +03:00
parent 84d579dda1
commit 7a442c5359

View file

@ -121,7 +121,10 @@ class TasksController extends ApiController {
if ($action == 'full') {
$this->response->data = $this->fullNewTaskInList($listId);
}
$this->response->data = $this->newTaskInList($listId);
else {
$this->response->data = $this->newTaskInList($listId);
}
}
/**
@ -477,7 +480,7 @@ class TasksController extends ApiController {
'ow' => (int)$r['ow'],
'tags' => htmlarray($r['tags']),
'tags_ids' => htmlarray($r['tags_ids']),
'duedate' => $dueA['formatted'],
'duedate' => htmlarray($dueA['formatted']),
'dueClass' => $dueA['class'],
'dueStr' => htmlarray($dueA['str']),
'dueInt' => $this->date2int($r['duedate']),