* Fix bug 20288.
This commit is contained in:
@@ -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 . '/';
|
||||
|
||||
Reference in New Issue
Block a user