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();
|
$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."¤ttab=revapp");
|
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user