bug fixes
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-10-11 19:17:41 +00:00
parent 862ac65b6d
commit 4ea210531a

View File

@ -94,6 +94,7 @@ final class BackendController extends Controller
} }
// Count tasks per project where tasks are used as progress indication // Count tasks per project where tasks are used as progress indication
if (!empty($taskProgress)) {
$projectIds = \implode(',', $taskProgress); $projectIds = \implode(',', $taskProgress);
$sql = <<<SQL $sql = <<<SQL
@ -110,6 +111,7 @@ final class BackendController extends Controller
foreach ($results as $result) { foreach ($results as $result) {
$view->data['progress'][$result['id']] = (int) (($result['total_tasks'] - $result['open_tasks']) / $result['total_tasks']); $view->data['progress'][$result['id']] = (int) (($result['total_tasks'] - $result['open_tasks']) / $result['total_tasks']);
} }
}
return $view; return $view;
} }