comment and attributes can be passed to uploaddocument

This commit is contained in:
Uwe Steinmann 2022-03-07 15:19:22 +01:00
parent c5dbe1995d
commit 85f7332e06

View File

@ -743,6 +743,16 @@ switch($command) {
}
}
if(isset($_POST["attributes"]))
$attributes = $_POST["attributes"];
else
$attributes = array();
if(isset($_POST["comment"]))
$comment = trim($_POST["comment"]);
else
$comment = '';
// Get the list of reviewers and approvers for this document.
$reviewers = array();
$approvers = array();
@ -784,7 +794,7 @@ switch($command) {
$controller->setParam('folder', $folder);
$controller->setParam('fulltextservice', $fulltextservice);
$controller->setParam('name', $name);
$controller->setParam('comment', '');
$controller->setParam('comment', $comment);
$controller->setParam('expires', $expires);
$controller->setParam('keywords', '');
$controller->setParam('categories', $cats);
@ -802,7 +812,7 @@ switch($command) {
$controller->setParam('approvers', $approvers);
$controller->setParam('reqversion', 1);
$controller->setParam('versioncomment', '');
$controller->setParam('attributes', array());
$controller->setParam('attributes', $attributes);
$controller->setParam('attributesversion', array());
$controller->setParam('workflow', $workflow);
$controller->setParam('notificationgroups', array());