show budget and time-budget columns in listing views (#2429)

This commit is contained in:
Kevin Papst
2021-03-13 20:44:10 +01:00
committed by GitHub
parent 3e9371bd6a
commit ec0eca39ff
7 changed files with 24 additions and 6 deletions

View File

@@ -62,7 +62,10 @@ class UserTeamProjects extends SimpleWidget implements AuthorizedWidget, UserWid
foreach ($projects as $id => $project) {
if ($project->getBudget() > 0 || $project->getTimeBudget() > 0) {
$stats[] = $this->repository->getProjectStatistics($project);
$stats[] = [
'project' => $project,
'stats' => $this->repository->getProjectStatistics($project),
];
}
}