* Adjust code
This commit is contained in:
@@ -2012,7 +2012,7 @@ class executionModel extends model
|
||||
$project = $this->loadModel('project')->getById($execution->project);
|
||||
$brotherProjects = $this->project->getBrotherProjects($project);
|
||||
$executions = $this->dao->select('id')->from(TABLE_EXECUTION)
|
||||
->where('project')->in(array_keys($brotherProjects))
|
||||
->where('project')->in($brotherProjects)
|
||||
->andWhere('status')->ne('closed')
|
||||
->fetchPairs('id');
|
||||
|
||||
|
||||
@@ -709,7 +709,7 @@ class projectModel extends model
|
||||
*/
|
||||
public function getBrotherProjects($project)
|
||||
{
|
||||
if($project->parent == 0) return array($project->id => $project);
|
||||
if($project->parent == 0) return array($project->id => $project->id);
|
||||
|
||||
$projectIds = array_filter(explode(',', $project->path));
|
||||
$parentProgram = $this->dao->select('*')->from(TABLE_PROGRAM)
|
||||
|
||||
Reference in New Issue
Block a user