This commit is contained in:
mayue
2021-11-03 14:50:48 +08:00
parent 8b1b92bdfc
commit be67b785b3
+5
View File
@@ -685,6 +685,11 @@ class programModel extends model
if($program->parent)
{
$this->dao->update(TABLE_MODULE)
->set('root')->eq($program->parent)
->where('root')->eq($programID)
->exec();
$parentProgram = $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($program->parent)->fetch();
if($parentProgram)
{