Merge branch 'sprint/170_mayue_15780' into 'sprint/170'

* Fix bug #15780.

See merge request easycorp/zentaopms!288
This commit is contained in:
李玉春
2021-11-03 07:18:17 +00:00

View File

@@ -685,6 +685,12 @@ class programModel extends model
if($program->parent)
{
$this->dao->update(TABLE_MODULE)
->set('root')->eq($program->parent)
->where('root')->eq($programID)
->andwhere('type')->eq('line')
->exec();
$parentProgram = $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($program->parent)->fetch();
if($parentProgram)
{