set initial document status

This commit is contained in:
Uwe Steinmann 2024-05-24 08:25:13 +02:00
parent 9e3bb361ae
commit 41a438754a

View File

@ -302,6 +302,7 @@ $filetmp = $filename;
$reviewers = array();
$approvers = array();
$recipients = array();
if($folder) {
$controller = Controller::factory('AddDocument', array('dms'=>$dms, 'user'=>$user));
@ -325,6 +326,7 @@ if($folder) {
$controller->setParam('sequence', $minmax['max'] + 1);
$controller->setParam('reviewers', $reviewers);
$controller->setParam('approvers', $approvers);
$controller->setParam('recipients', $recipients);
$controller->setParam('reqversion', $reqversion);
$controller->setParam('versioncomment', $version_comment);
$controller->setParam('attributes', $document_attributes);
@ -332,6 +334,7 @@ if($folder) {
$controller->setParam('workflow', null);
$controller->setParam('notificationgroups', array());
$controller->setParam('notificationusers', array());
$controller->setParam('initialdocumentstatus', $settings->_initialDocumentStatus);
$controller->setParam('maxsizeforfulltext', $settings->_maxSizeForFullText);
$controller->setParam('defaultaccessdocs', $settings->_defaultAccessDocs);