mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix for bb23883: task was created twice if full form was used
This commit is contained in:
parent
84d579dda1
commit
7a442c5359
1 changed files with 5 additions and 2 deletions
|
|
@ -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']),
|
||||
|
|
|
|||
Loading…
Reference in a new issue