mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-25 18:21:19 +00:00
remove second sending of emails
This commit is contained in:
parent
0fd0293f35
commit
64a7d341eb
|
|
@ -117,24 +117,6 @@ if(!$controller()) {
|
|||
}
|
||||
}
|
||||
|
||||
/* Send notification about status change only if status has actually changed */
|
||||
$newdocstatus = $content->getStatus();
|
||||
if($olddocstatus['status'] != $newdocstatus['status']) {
|
||||
// Send notification to subscribers.
|
||||
if($notifier) {
|
||||
$notifier->sendChangedDocumentStatusMail($content, $user, $olddocstatus["status"]);
|
||||
}
|
||||
}
|
||||
|
||||
// Notify approvers, if necessary.
|
||||
if ($newdocstatus['status'] == S_DRAFT_APP) {
|
||||
$requestUser = $document->getOwner();
|
||||
|
||||
if($notifier) {
|
||||
$notifier->sendApprovalRequestMail($content, $user);
|
||||
}
|
||||
}
|
||||
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp");
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user