Merge branch '230' into sprint/zentaopms230

This commit is contained in:
sunguangming
2022-08-25 09:59:07 +08:00
7 changed files with 57 additions and 12 deletions
+13 -1
View File
@@ -1340,7 +1340,19 @@ class task extends control
$currentTeam = $this->task->getTeamByAccount($task->team);
if($currentTeam) $task->myConsumed = $currentTeam->consumed;
$members = $this->task->getMemberPairs($task);
$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;