mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
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:
parent
7372ccfe11
commit
2a38d713b8
|
@ -165,6 +165,7 @@ if ($newdocstatus == S_DRAFT_APP) {
|
|||
$requestUser = $document->getOwner();
|
||||
|
||||
if($notifier) {
|
||||
if($docApprovalStatus = $content->getApprovalStatus()) {
|
||||
$subject = "approval_request_email_subject";
|
||||
$message = "approval_request_email_body";
|
||||
$params = array();
|
||||
|
@ -190,6 +191,7 @@ if ($newdocstatus == S_DRAFT_APP) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user