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;