mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-05 08:02:03 +00:00
fix sending reception request notification
This commit is contained in:
parent
20b084660f
commit
f4c0ec21ed
|
|
@ -83,11 +83,11 @@ if(!$receiptStatus) {
|
|||
}
|
||||
|
||||
if($receiptStatus['type'] == 0) {
|
||||
$ruser = $dms->getUser($receiptStatus['required']);
|
||||
$msg = getMLText('ind_receipt_removed', array('name'=>$ruser->getFullName()));
|
||||
$recipient = $dms->getUser($receiptStatus['required']);
|
||||
$msg = getMLText('ind_receipt_removed', array('name'=>$recipient->getFullName()));
|
||||
} elseif($receiptStatus['type'] == 1) {
|
||||
$rgroup = $dms->getGroup($receiptStatus['required']);
|
||||
$msg = getMLText('group_receipt_removed', array('name'=>$rgroup->getName()));
|
||||
$recipient = $dms->getGroup($receiptStatus['required']);
|
||||
$msg = getMLText('group_receipt_removed', array('name'=>$recipient->getName()));
|
||||
} else
|
||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("invalid_receiptid"));
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ $comment = $_POST["comment"];
|
|||
$overallStatus = $latestContent->getStatus();
|
||||
if(true === $latestContent->removeReceipt($receiptid, $user, $comment)) {
|
||||
if($notifier) {
|
||||
$notifier->sendAddReceiptMail($latestContent, $user);
|
||||
$notifier->sendAddReceiptMail($latestContent, $user, $recipient);
|
||||
}
|
||||
}
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=recipients");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user