Merge branch 'sprint/170_mayue_15780' into 'sprint/170'
* Fix bug #15780. See merge request easycorp/zentaopms!288
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user