This commit is contained in:
hufangzhou
2020-12-01 15:20:34 +08:00
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -842,7 +842,7 @@ class programModel extends model
$this->app->loadClass('pager', $static = true);
foreach($projects as $projectID => $project)
{
$orderBy = $project->model == 'waterfall' ? 'path_asc,id_asc' : 'id_desc';
$orderBy = $project->model == 'waterfall' ? 'id_asc,path_asc' : 'id_desc';
$pager = $project->model == 'waterfall' ? null : new pager(0, 1, 1);
$project->executions = $this->project->getExecutionStats($projectID, 'undone', 0, 0, 30, $orderBy, $pager);
$project->teamCount = isset($teams[$projectID]) ? $teams[$projectID]->count : 0;