* Finish task #7721.

This commit is contained in:
Yagami
2020-08-31 13:34:32 +08:00
parent 05a4a31426
commit 116a7e43b3
43 changed files with 278 additions and 279 deletions

View File

@@ -212,7 +212,7 @@ class programModel extends model
foreach($programs as $programID => $program)
{
$orderBy = $program->template == 'cmmi' ? 'id_asc' : 'id_desc';
$orderBy = $program->template == 'waterfall' ? 'id_asc' : 'id_desc';
$program->projects = $this->project->getProjectStats($status, 0, 0, $itemCounts, $orderBy, $pager, $programID);
$program->teamCount = isset($teams[$programID]) ? $teams[$programID]->count : 0;
$program->estimate = isset($estimates[$programID]) ? $estimates[$programID]->estimate : 0;
@@ -324,7 +324,7 @@ class programModel extends model
$this->dao->insert(TABLE_USERGROUP)->data($groupPriv)->exec();
}
if($project->template == 'cmmi')
if($project->template == 'waterfall')
{
$product = new stdclass();
$product->name = $project->name;