* Change book lib to custom lib.
This commit is contained in:
@@ -8275,10 +8275,9 @@ class upgradeModel extends model
|
||||
$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('`deleted`')->eq('1')->where('id')->eq($id)->exec();
|
||||
}
|
||||
}
|
||||
$this->dao->update(TABLE_DOCLIB)->set('`type`')->eq('custom')->where('id')->eq($libID)->exec();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user