From 2b75baa00456953ff7082900c067e476c2a5c692 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 14 Sep 2022 13:39:40 +0800 Subject: [PATCH] * fix bug #27472. --- module/task/view/recordestimate.html.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/task/view/recordestimate.html.php b/module/task/view/recordestimate.html.php index 1dbb626960..dfc05fb33b 100644 --- a/module/task/view/recordestimate.html.php +++ b/module/task/view/recordestimate.html.php @@ -21,7 +21,11 @@ if(!empty($members) && $task->mode == 'linear') $isCurrent = false; foreach($task->team as $taskTeam) { - if($isCurrent) $nextAccount = $taskTeam->account; + if($isCurrent) + { + $nextAccount = $taskTeam->account; + break; + } if($task->assignedTo == $taskTeam->account and $taskTeam->account == $app->user->account and $taskTeam->status != 'done') $isCurrent = true; } if($nextAccount) $confirmRecord = sprintf($lang->task->confirmTransfer, zget($users, $nextAccount));