1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Ensure contact ids are stored in activity table

This commit is contained in:
David Bomba 2023-04-06 09:50:57 +10:00
parent 012d33c723
commit 28a24df77b
2 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,9 @@ class InvoiceEmailFailedActivity implements ShouldQueue
$fields->user_id = $user_id;
$fields->invoice_id = $event->invitation->invoice->id;
$fields->invoice_id = $event->invitation->invoice_id;
$fields->client_id = $event->invitation->invoice->client_id;
$fields->client_contact_id = $event->invitation->client_contact_id;
$fields->company_id = $event->invitation->invoice->company_id;
$fields->activity_type_id = Activity::EMAIL_INVOICE_FAILED;
$fields->notes = $event->message;

View File

@ -53,7 +53,6 @@ class QuoteEmailActivity implements ShouldQueue
$fields->client_id = $event->invitation->quote->client_id;
$fields->company_id = $event->invitation->quote->company_id;
$fields->client_contact_id = $event->invitation->quote->client_contact_id;
$fields->client_id = $event->invitation->quote->client_id;
$fields->activity_type_id = Activity::EMAIL_QUOTE;
$this->activity_repo->save($fields, $event->invitation, $event->event_vars);