From e4af7eab3b58b7a3e8f0766171b517356e59c3a7 Mon Sep 17 00:00:00 2001 From: zenggang Date: Mon, 4 Jul 2022 09:13:46 +0000 Subject: [PATCH] * Fix bug #24689 --- module/execution/control.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index 8313194d83..e22d270f7f 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -412,13 +412,26 @@ class execution extends control } elseif($groupBy == 'assignedTo' and $filter == 'undone') { + $multiTaskCount = array(); foreach($groupTasks as $assignedTo => $tasks) { foreach($tasks as $i => $task) { if($task->status != 'wait' and $task->status != 'doing') { - $allCount -= 1; + if($task->mode == 'multi') + { + if(!isset($multiTaskCount[$task->id])) + { + $multiTaskCount[$task->id] = true; + $allCount -= 1; + } + } + else + { + $allCount -= 1; + } + unset($groupTasks[$assignedTo][$i]); } }