mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 06:34:35 -04:00
Avoid passing relations into mailer objectS
This commit is contained in:
parent
30f85d8e23
commit
0828ff9ce6
@ -22,8 +22,6 @@ class InvoiceFailedEmailNotification
|
||||
{
|
||||
use UserNotifies;
|
||||
|
||||
public $delay = 7;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
@ -51,8 +49,8 @@ class InvoiceFailedEmailNotification
|
||||
unset($methods[$key]);
|
||||
|
||||
$nmo = new NinjaMailerObject;
|
||||
$nmo->mailable = new NinjaMailer((new EntityFailedSendObject($event->invitation, 'invoice', $event->template, $event->message))->build());
|
||||
$nmo->company = $invoice->company;
|
||||
$nmo->mailable = new NinjaMailer((new EntityFailedSendObject($event->invitation->withoutRelations(), 'invoice', $event->template, $event->message))->build());
|
||||
$nmo->company = $invoice->company->withoutRelations();
|
||||
$nmo->settings = $invoice->company->settings;
|
||||
$nmo->to_user = $user;
|
||||
|
||||
|
@ -5011,6 +5011,7 @@ $LANG = array(
|
||||
'add_company_logo' => 'Add Logo',
|
||||
'add_stripe' => 'Add Stripe',
|
||||
'invalid_coupon' => 'Invalid Coupon',
|
||||
'no_assigned_tasks' => 'No billable tasks for this project',
|
||||
);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user