* Code for task#41776.

This commit is contained in:
xieqiyu
2021-08-31 10:14:12 +08:00
parent 06906e06d6
commit 34b5a56105
4 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -1797,6 +1797,7 @@ class projectModel extends model
$myProjects = array();
$otherProjects = array();
$statusCount = array();
foreach($projects as $project)
{
if(strpos('wait,doing,closed', $project->status) === false) continue;
@@ -1807,14 +1808,17 @@ class projectModel extends model
if($project->PM == $this->app->user->account)
{
$myProjects[$topProgram][$project->status][$project->id] = $project;
$statusCount['my'][$topProgram][$project->status] = count($myProjects[$topProgram][$project->status]);
}
else
{
$otherProjects[$topProgram][$project->status][$project->id] = $project;
$statusCount['other'][$topProgram][$project->status] = count($otherProjects[$topProgram][$project->status]);
}
}
return array('kanbanGroup' => array('my' => $myProjects, 'other' => $otherProjects), 'latestExecutions' => $latestExecutions);
return array('kanbanGroup' => array('my' => $myProjects, 'other' => $otherProjects), 'latestExecutions' => $latestExecutions, 'statusCount' => $statusCount);
}
/**