* Fix type error.

This commit is contained in:
sunguangming
2023-12-23 17:26:11 +08:00
parent 89dd6e4e54
commit d24620a908
+1
View File
@@ -3007,6 +3007,7 @@ class taskModel extends model
*/
public function updateParent(object $task, bool $isParentChanged): void
{
$task->parent = (int)$task->parent;
$parentTask = $this->fetchByID($task->parent);
$this->dao->update(TABLE_TASK)->set('parent')->eq(-1)->where('id')->eq($task->parent)->exec();