* Fix the issue of create task database errors.

This commit is contained in:
tianshujie
2023-05-26 11:22:04 +08:00
parent 6697ba4054
commit b897ad3a90
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -95,9 +95,9 @@ class task extends control
$this->dao->commit();
/* Update other data related to the task after it is created. */
$columnID = isset($output['columnID']) ? (int)$output['columnID'] : 0;
$taskIdList = (array)$taskIdList;
$task->id = current($taskIdList);
$columnID = isset($output['columnID']) ? (int)$output['columnID'] : 0;
$taskIdList = (array)$taskIdList;
$taskData->id = current($taskIdList);
$this->task->afterCreate($taskData, $taskIdList, $bugID, $todoID);
$this->task->updateKanbanData($taskData->execution, $taskIdList, (int)$this->post->lane, $columnID);
helper::setcookie('lastTaskModule', (int)$this->post->module);