fix sending reception request notification

This commit is contained in:
Uwe Steinmann 2026-01-20 11:45:59 +01:00
parent 20b084660f
commit f4c0ec21ed

View File

@ -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."&currenttab=recipients");