Commit 3bd1db08 by Damien Moulard

fix for caissier send transaction mail to gestionnaires

parent ed29434d
...@@ -49,8 +49,7 @@ class TransactionAdherentPrestataire extends Transaction ...@@ -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). // 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. // Only for presta administrators, if a cashier is connected the administrators are notified as if the param wasn't set.
// TODO: tests $destinataires = $this->getDestinataire()->getUsers()->toArray();
$destinaraires = $this->getDestinataire()->getUsers()->toArray();
if ( if (
$_ENV['SEND_TRANSACTION_NOTIF_TO_PRESTA_OPERATOR'] $_ENV['SEND_TRANSACTION_NOTIF_TO_PRESTA_OPERATOR']
&& $this->getOperateur() && $this->getOperateur()
...@@ -60,7 +59,7 @@ class TransactionAdherentPrestataire extends Transaction ...@@ -60,7 +59,7 @@ class TransactionAdherentPrestataire extends Transaction
} }
return [ return [
'expediteurs' => [$this->getExpediteur()->getUser()], '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