* Fix bug #15780.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user