From 24aef867c6adff74ea05d0726520ee692f41c1c8 Mon Sep 17 00:00:00 2001 From: Catouse Date: Tue, 12 May 2020 13:39:21 +0800 Subject: [PATCH] * fix members count and working hours algorithm. --- module/program/control.php | 2 +- module/program/view/index.html.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/program/control.php b/module/program/control.php index 56af6ba54c..23b28cc606 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -39,7 +39,7 @@ class program extends control $projectList = $this->project->getProjectStats($status == 'byproduct' ? 'all' : $status, 0, 0, 30, $orderBy, $pager); foreach($projectList as $projectID => $project) { - $project->teamCount = count($this->project->getTeamMembers($projectID)); + $project->teamCount = count($this->project->getTeamMembers($project->id)); } } else diff --git a/module/program/view/index.html.php b/module/program/view/index.html.php index 331a435d8a..2dba4f098b 100644 --- a/module/program/view/index.html.php +++ b/module/program/view/index.html.php @@ -74,7 +74,7 @@
program->membersUnit, $project->teamCount); ?> - program->hoursUnit, $project->hours->totalEstimate); ?> + program->hoursUnit, $project->hours->totalConsumed); ?> budget . '' . zget($lang->program->unitList, $project->budgetUnit);?>
type === 'cmmi'): ?> @@ -86,7 +86,7 @@

program->lastIteration; ?>

-
name; ?>
+
name; ?>