From d9b1aa5e8d94de746ae0cc52c870c29a7f56a602 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 25 Aug 2022 13:25:58 +0800 Subject: [PATCH] * adjust for finish. --- module/task/control.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/module/task/control.php b/module/task/control.php index c97890ac3f..449503aed6 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -1339,20 +1339,6 @@ class task extends control $task->myConsumed = 0; $currentTeam = $this->task->getTeamByAccount($task->team); if($currentTeam) $task->myConsumed = $currentTeam->consumed; - - $task->nextBy = $this->task->getAssignedTo4Multi($members, $task); - $task->myConsumed = isset($task->team[$this->app->user->account]) ? $task->team[$this->app->user->account]->consumed : 0; - - $lastAccount = end($teams); - $finishedUsers = $this->task->getFinishedUsers($taskID, $teams); - if(($lastAccount != $task->assignedTo and $task->mode == 'linear') or ($task->mode == 'multi' and count($teams) != count($finishedUsers))) - { - $members = $this->task->getMemberPairs($task); - } - else - { - $task->nextBy = $task->openedBy; - } } $this->view->title = $this->view->execution->name . $this->lang->colon .$this->lang->task->finish;