* [bug #60951] fix parent undefined error in doc basic modal.

This commit is contained in:
sunhao
2025-03-28 16:37:44 +08:00
committed by 綦新志
parent 4345397954
commit 251efbbf8d
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -7323,7 +7323,7 @@ class upgradeModel extends model
$path = implode(',', $path);
$this->dao->update(TABLE_MODULE)->set('`path`')->eq(",{$path},")->where('id')->eq($moduleID)->exec();
$this->dao->update(TABLE_DOC)->set('`module`')->eq($moduleID)->set('`parent`')->eq($moduleID)->set("`path` = REPLACE(`path`, '{$chapter->path}', ',{$path},')")->set('`type`')->eq('text')->where('`parent`')->eq($id)->andWhere('`type`')->eq('article')->exec();
$this->dao->update(TABLE_DOC)->set('`module`')->eq($moduleID)->set("`path` = REPLACE(`path`, '{$chapter->path}', ',{$path},')")->set('`type`')->eq('text')->where('`parent`')->eq($id)->andWhere('`type`')->eq('article')->exec();
$this->dao->update(TABLE_DOC)->set('deleted')->eq(1)->where('id')->eq($id)->exec();
}
}