* Fix bug 20288.

This commit is contained in:
zhouxin
2022-04-01 06:35:26 +00:00
parent 4f195dceba
commit b980998c42
+1 -2
View File
@@ -243,8 +243,7 @@ class projectModel extends model
{
if($project->parent == 0) return '';
$parentName = $this->dao->select('id,name')->from(TABLE_PROGRAM)->where('id')->in(trim($project->path, ','))->fetchPairs();
unset($parentName[$project->id]);
$parentName = $this->dao->select('id,name')->from(TABLE_PROGRAM)->where('id')->in(trim($project->path, ','))->andWhere('grade')->lt($project->grade)->fetchPairs();
$parentProgram = '';
foreach($parentName as $name) $parentProgram .= $name . '/';