From 33b78769b487e4e7ac88451dcbc5f5924684bd2a Mon Sep 17 00:00:00 2001 From: mayue Date: Wed, 25 May 2022 05:28:36 +0000 Subject: [PATCH] * Fix bug #22901. --- module/task/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/task/model.php b/module/task/model.php index 3947b52a85..6db40fe8ac 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1966,6 +1966,7 @@ class taskModel extends model { $oldChildrenTasks = $this->dao->select('*')->from(TABLE_TASK)->where('parent')->eq($taskID)->fetchAll('id'); unset($task->assignedTo); + unset($task->id); $this->dao->update(TABLE_TASK)->data($task)->autoCheck()->where('parent')->eq((int)$taskID)->exec(); $this->dao->update(TABLE_TASK)->set('assignedTo=openedBy')->where('parent')->eq((int)$taskID)->exec(); if(!dao::isError() and count($oldChildrenTasks) > 0) @@ -2051,6 +2052,7 @@ class taskModel extends model { $oldChildrenTasks = $this->dao->select('*')->from(TABLE_TASK)->where('parent')->eq($taskID)->fetchAll('id'); unset($task->left); + unset($task->id); $this->dao->update(TABLE_TASK)->data($task)->autoCheck()->where('parent')->eq((int)$taskID)->exec(); $this->computeWorkingHours($taskID); if(!dao::isError() and count($oldChildrenTasks) > 0)