send request for approval mail only if no review is needed

previously the approver was invited to approve the document, even if
the review hasn't been done
This commit is contained in:
Uwe Steinmann 2016-12-01 08:25:16 +01:00
parent bbf4caa8c8
commit 6494eda4eb
2 changed files with 2 additions and 2 deletions

View File

@ -409,7 +409,7 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
}
}
if($approvers['i'] || $approvers['g']) {
elseif($approvers['i'] || $approvers['g']) {
$subject = "approval_request_email_subject";
$message = "approval_request_email_body";
$params = array();

View File

@ -318,7 +318,7 @@ if ($_FILES['userfile']['error'] == 0) {
}
}
if($approvers['i'] || $approvers['g']) {
elseif($approvers['i'] || $approvers['g']) {
$subject = "approval_request_email_subject";
$message = "approval_request_email_body";
$params = array();