Merge branch 'fixbug_liumengyi' into 'master'

* Fix bug 32578, and fix bug of set path.

See merge request easycorp/zentaopms!7118
This commit is contained in:
孙广明
2023-03-02 00:48:31 +00:00
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1046,7 +1046,7 @@ class programplanModel extends model
$this->dao->update(TABLE_PROJECT)->set('path')->eq($path['path'])->set('grade')->eq($path['grade'])->where('id')->eq($stage->id)->exec();
if(count($children) > 0)
if(!empty($children))
{
foreach($children as $id => $child) $this->setTreePath($id);
}