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

This commit is contained in:
liumengyi
2023-03-02 00:29:11 +00:00
parent aa7540d163
commit 72b0baa4cd
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);
}