do not set mandatory reviewer if workflow is traditional_no_review

This commit is contained in:
Uwe Steinmann 2019-09-10 17:43:32 +02:00
parent e24e031b17
commit 875dea5708

View File

@ -683,8 +683,10 @@ switch($command) {
$approvers["i"] = array();
$approvers["g"] = array();
if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'traditional_only_approval') {
// add mandatory reviewers/approvers
$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
if($settings->_workflowMode == 'traditional') {
$res=$user->getMandatoryReviewers();
foreach ($res as $r){
@ -703,6 +705,7 @@ switch($command) {
}
}
}
}
$res=$user->getMandatoryApprovers();
foreach ($res as $r){
@ -722,7 +725,10 @@ switch($command) {
}
}
} elseif($settings->_workflowMode == 'advanced') {
$workflow = $user->getMandatoryWorkflow();
}
$expires = false;
if($settings->_presetExpirationDate) {