* Adjust code

This commit is contained in:
zenggang
2022-05-17 08:21:49 +00:00
parent 8a06d71cfd
commit aef54696ec
+2
View File
@@ -709,6 +709,8 @@ class projectModel extends model
*/
public function getBrotherProjects($project)
{
if($project->parent == 0) return array($project->id => $project);
$projectIds = array_filter(explode(',', $project->path));
$parentProgram = $this->dao->select('*')->from(TABLE_PROGRAM)
->where('id')->in($projectIds)