* Adjust the doc module code.

This commit is contained in:
leiyong
2020-11-12 18:25:05 +08:00
parent db4328a225
commit 1065817f17
8 changed files with 83 additions and 31 deletions
+10
View File
@@ -503,6 +503,7 @@ class programplanModel extends model
$this->loadModel('user');
$this->loadModel('project');
$this->app->loadLang('doc');
$account = $this->app->user->account;
$now = helper::now();
foreach($datas as $data)
@@ -566,6 +567,15 @@ class programplanModel extends model
$stageID = $this->dao->lastInsertID();
$this->dao->update(TABLE_PROJECT)->set('`order`')->eq($stageID * 5)->where('id')->eq($stageID)->exec();
/* Create doc lib. */
$lib = new stdclass();
$lib->project = $stageID;
$lib->name = $this->lang->doclib->main['project'];
$lib->type = 'project';
$lib->main = '1';
$lib->acl = 'default';
$this->dao->insert(TABLE_DOCLIB)->data($lib)->exec();
/* Add creators to stage teams and project teams. */
$member = new stdclass();
$member->root = $stageID;