* finish task #2893,2894.

This commit is contained in:
wangyidong
2017-02-24 16:28:29 +08:00
parent 0a00ab84a8
commit 4e84b9cdde
15 changed files with 1039 additions and 25 deletions
+1 -2
View File
@@ -1215,8 +1215,7 @@ class upgradeModel extends model
}
$newPaths = join(',', $newPaths);
$newPaths = ",$newPaths,";
$this->dao->update(TABLE_MODULE)->set('path')->eq($newPaths)->where('id')->eq($newModuleID)->exec();
$this->dao->update(TABLE_MODULE)->set('path')->eq($newPaths)->set('parent')->eq($relation[$module->parent])->where('id')->eq($newModuleID)->exec();
$this->dao->update(TABLE_DOC)->set('module')->eq($newModuleID)->where('product')->eq($productID)->andWhere('module')->eq($moduleID)->andWhere('lib')->eq('product')->exec();
}
$this->dao->update(TABLE_DOC)->set('lib')->eq($libID)->where('product')->eq($productID)->exec();