Commit 3bd1db08 by Damien Moulard

fix for caissier send transaction mail to gestionnaires

parent ed29434d
......@@ -49,8 +49,7 @@ class TransactionAdherentPrestataire extends Transaction
{
// If param is set, only send mail notification to the operator (ie connected user that received the payment).
// Only for presta administrators, if a cashier is connected the administrators are notified as if the param wasn't set.
// TODO: tests
$destinaraires = $this->getDestinataire()->getUsers()->toArray();
$destinataires = $this->getDestinataire()->getUsers()->toArray();
if (
$_ENV['SEND_TRANSACTION_NOTIF_TO_PRESTA_OPERATOR']
&& $this->getOperateur()
......@@ -60,7 +59,7 @@ class TransactionAdherentPrestataire extends Transaction
}
return [
'expediteurs' => [$this->getExpediteur()->getUser()],
'destinataires' => $destinaraires,
'destinataires' => $destinataires,
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment