* [task#132441,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2024-11-13 09:10:37 +08:00
committed by 王怡栋
parent 54b47eee21
commit c433d08ded
+1 -1
View File
@@ -141,7 +141,7 @@ class task extends control
if(!empty($_POST))
{
$parent = $taskID > 0 ? $this->task->fetchById($taskID) : new stdclass();
$parent = $taskID > 0 ? $this->task->fetchById($taskID) : null;
/* Process the request data for the batch create tasks. */
$taskData = $this->taskZen->buildTasksForBatchCreate($execution, $taskID, $output);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));