Tasks: Fix unknown task creation date with database driver
This commit is contained in:
parent
b3b695b66d
commit
9d0444cfc4
1 changed files with 2 additions and 1 deletions
|
@ -524,6 +524,7 @@ class tasklist_database_driver extends tasklist_driver
|
||||||
$rec['id'] = $rec['task_id'];
|
$rec['id'] = $rec['task_id'];
|
||||||
$rec['list'] = $rec['tasklist_id'];
|
$rec['list'] = $rec['tasklist_id'];
|
||||||
$rec['changed'] = new DateTime($rec['changed']);
|
$rec['changed'] = new DateTime($rec['changed']);
|
||||||
|
$rec['created'] = new DateTime($rec['created']);
|
||||||
$rec['tags'] = array_filter(explode(',', $rec['tags']));
|
$rec['tags'] = array_filter(explode(',', $rec['tags']));
|
||||||
|
|
||||||
if (!$rec['parent_id']) {
|
if (!$rec['parent_id']) {
|
||||||
|
@ -545,7 +546,7 @@ class tasklist_database_driver extends tasklist_driver
|
||||||
$this->tags = array_merge($this->tags, (array)$rec['tags']);
|
$this->tags = array_merge($this->tags, (array)$rec['tags']);
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($rec['task_id'], $rec['tasklist_id'], $rec['created']);
|
unset($rec['task_id'], $rec['tasklist_id']);
|
||||||
|
|
||||||
return $rec;
|
return $rec;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue