From e504bc574290021973c269151f9bb838efaa421c Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 23 May 2024 10:04:05 +0800 Subject: [PATCH] * Fix bug #50009. --- module/program/ui/project.html.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/module/program/ui/project.html.php b/module/program/ui/project.html.php index 6f06fb6e0a..d825b8819d 100644 --- a/module/program/ui/project.html.php +++ b/module/program/ui/project.html.php @@ -35,11 +35,23 @@ $cols['progress']['sortType'] = false; $projectStats = initTableData($projectStats, $cols, $this->project); +$waitCount = 0; +$doingCount = 0; +$suspendedCount = 0; +$closedCount = 0; $projectIdList = array_column($projectStats, 'id'); $storyGroup = $this->loadModel('story')->fetchStoriesByProjectIdList($projectIdList); $executionGroup = $this->loadModel('execution')->fetchExecutionsByProjectIdList($projectIdList); foreach($projectStats as $project) { + if($browseType == 'all') + { + if($project->status == 'wait') $waitCount ++; + if($project->status == 'doing') $doingCount ++; + if($project->status == 'suspended') $suspendedCount ++; + if($project->status == 'closed') $closedCount ++; + } + $projectStories = zget($storyGroup, $project->id, array()); $project->storyCount = count($projectStories); $project->storyPoints = round(array_sum(array_column($projectStories, 'estimate')), 2) . ' ' . $this->config->hourUnit;