* Adjust for php8.1 syntax.
This commit is contained in:
@@ -2409,12 +2409,12 @@ class taskModel extends model
|
||||
->andWhere('t1.vision')->eq($this->config->vision)
|
||||
->fetch();
|
||||
if(!$task) return false;
|
||||
$task->openedDate = substr($task->openedDate, 0, 19);
|
||||
$task->finishedDate = substr($task->finishedDate, 0, 19);
|
||||
$task->canceledDate = substr($task->canceledDate, 0, 19);
|
||||
$task->closedDate = substr($task->closedDate, 0, 19);
|
||||
$task->lastEditedDate = substr($task->lastEditedDate, 0, 19);
|
||||
$task->realStarted = substr($task->realStarted, 0, 19);
|
||||
if($task->openedDate) $task->openedDate = substr($task->openedDate, 0, 19);
|
||||
if($task->finishedDate) $task->finishedDate = substr($task->finishedDate, 0, 19);
|
||||
if($task->canceledDate) $task->canceledDate = substr($task->canceledDate, 0, 19);
|
||||
if($task->closedDate) $task->closedDate = substr($task->closedDate, 0, 19);
|
||||
if($task->lastEditedDate) $task->lastEditedDate = substr($task->lastEditedDate, 0, 19);
|
||||
if($task->realStarted) $task->realStarted = substr($task->realStarted, 0, 19);
|
||||
|
||||
$children = $this->dao->select('*')->from(TABLE_TASK)->where('parent')->eq($taskID)->andWhere('deleted')->eq(0)->fetchAll('id');
|
||||
$task->children = $children;
|
||||
|
||||
Reference in New Issue
Block a user