From 8f861c26afe09eec94de83711dcaa5a3e0c9c3d8 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 14 Apr 2021 09:37:09 +0800 Subject: [PATCH] * Fix bug #11940. --- module/task/control.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/task/control.php b/module/task/control.php index 2397be26ae..3e01190019 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -1228,6 +1228,13 @@ class task extends control die(js::locate($this->createLink('task', 'view', "taskID=$taskID"), 'parent')); } + if(!empty($this->view->task->team)) + { + $members = array(); + foreach($this->view->task->team as $account => $member) $members[$account] = zget($this->view->members, $account); + $this->view->members = $members; + } + if(!isset($this->view->members[$this->view->task->finishedBy])) $this->view->members[$this->view->task->finishedBy] = $this->view->task->finishedBy; $this->view->title = $this->view->execution->name . $this->lang->colon . $this->lang->task->activate; $this->view->position[] = $this->lang->task->activate;