From a72aba558aa9af23c7aedfceef975ab021bed918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Thu, 15 Dec 2022 14:00:32 +0800 Subject: [PATCH] * Fix bug #30875. --- module/task/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/task/model.php b/module/task/model.php index 7998e7535d..927dfaf7a9 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -1071,6 +1071,7 @@ class taskModel extends model /* If a multiple task is assigned to a team member who is not the task, assign to the team member instead. */ if(!$this->post->assignedTo and !empty($oldTask->team) and !empty($_POST['team'])) $_POST['assignedTo'] = $this->getAssignedTo4Multi($_POST['team'], $oldTask); + if(!$oldTask->mode and !$this->post->assignedTo and !empty($_POST['team'])) $_POST['assignedTo'] = $_POST['team'][0]; /* When the selected parent task is a common task and has consumption, select other parent tasks. */ if($this->post->parent > 0)