* Finish task #8199.

This commit is contained in:
tianshujie98
2020-11-03 17:25:01 +08:00
parent 4ea37d68a2
commit a2a50698ee
14 changed files with 349 additions and 148 deletions
+4 -2
View File
@@ -320,6 +320,8 @@ class doc extends control
$this->send(array('result' => 'fail', 'message' => sprintf($this->lang->duplicate, $this->lang->doc->common), 'locate' => $this->createLink('doc', 'view', "docID=$docID")));
}
$this->executeHooks($docID);
$fileAction = '';
if(!empty($files)) $fileAction = $this->lang->addFiles . join(',', $files) . "\n" ;
$this->action->create('doc', $docID, 'Created', $fileAction);
@@ -371,7 +373,7 @@ class doc extends control
$this->view->type = $type;
$this->view->docType = $docType;
$this->view->groups = $this->loadModel('group')->getPairs();
$this->view->users = $this->user->getPairs('nocode');
$this->view->users = $this->user->getPairs('nocode|noclosed|nodeleted');
$this->display();
}
@@ -424,7 +426,7 @@ class doc extends control
$this->view->type = $type;
$this->view->libs = $this->doc->getLibs($type = 'all', $extra = 'withObject');
$this->view->groups = $this->loadModel('group')->getPairs();
$this->view->users = $this->user->getPairs('noletter', $doc->users);
$this->view->users = $this->user->getPairs('noletter|noclosed|nodeleted', $doc->users);
$this->display();
}