* Fix bug.

This commit is contained in:
leiyong
2020-12-02 13:36:29 +08:00
parent 2eab398805
commit 708254c54d
4 changed files with 9 additions and 9 deletions

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' ? 'id_asc,path_asc' : 'id_desc';
$orderBy = $project->model == 'waterfall' ? 'id_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;