get approval status before sending notification mails

the approval status was simply not known because part of the code
went into the controller
This commit is contained in:
Uwe Steinmann 2017-06-29 15:34:32 +02:00
parent 7372ccfe11
commit 2a38d713b8

View File

@ -165,6 +165,7 @@ if ($newdocstatus == S_DRAFT_APP) {
$requestUser = $document->getOwner(); $requestUser = $document->getOwner();
if($notifier) { if($notifier) {
if($docApprovalStatus = $content->getApprovalStatus()) {
$subject = "approval_request_email_subject"; $subject = "approval_request_email_subject";
$message = "approval_request_email_body"; $message = "approval_request_email_body";
$params = array(); $params = array();
@ -190,6 +191,7 @@ if ($newdocstatus == S_DRAFT_APP) {
} }
} }
} }
}
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."&currenttab=revapp"); header("Location:../out/out.ViewDocument.php?documentid=".$documentid."&currenttab=revapp");