* Code for task#41776.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user