Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.6.0-b1
-
Component/s: None
-
Labels:None
Description
To reproduce:
- Configure the messenger payment notice
- Enable error reporting
- Create 2 clients with different phone numbers
- Create an invoice the is due for a payment reminder
- Run the cron
- See a fatal error
In core/Automation/Tasks/Task/PaymentReminders.php around line 438 change:
$this->MessengerManager->send($options['email_template'], $tags, [$invoice->client->user_id]);
To
$this->MessengerManager->send($options['email_template'], $tags, [$client->user_id]);
This bug may cause all invoice delivery messages to be sent to a single user.