mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
do not set mandatory reviewer if workflow is traditional_no_review
This commit is contained in:
parent
e24e031b17
commit
875dea5708
|
@ -683,8 +683,10 @@ switch($command) {
|
||||||
$approvers["i"] = array();
|
$approvers["i"] = array();
|
||||||
$approvers["g"] = array();
|
$approvers["g"] = array();
|
||||||
|
|
||||||
|
if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'traditional_only_approval') {
|
||||||
// add mandatory reviewers/approvers
|
// add mandatory reviewers/approvers
|
||||||
$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
|
$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
|
||||||
|
if($settings->_workflowMode == 'traditional') {
|
||||||
$res=$user->getMandatoryReviewers();
|
$res=$user->getMandatoryReviewers();
|
||||||
foreach ($res as $r){
|
foreach ($res as $r){
|
||||||
|
|
||||||
|
@ -703,6 +705,7 @@ switch($command) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$res=$user->getMandatoryApprovers();
|
$res=$user->getMandatoryApprovers();
|
||||||
foreach ($res as $r){
|
foreach ($res as $r){
|
||||||
|
|
||||||
|
@ -722,7 +725,10 @@ switch($command) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} elseif($settings->_workflowMode == 'advanced') {
|
||||||
$workflow = $user->getMandatoryWorkflow();
|
$workflow = $user->getMandatoryWorkflow();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$expires = false;
|
$expires = false;
|
||||||
if($settings->_presetExpirationDate) {
|
if($settings->_presetExpirationDate) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user