1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fixes for event failure when viewing an invoice in the portal

This commit is contained in:
David Bomba 2020-07-28 18:07:40 +10:00
parent c8eb191bb2
commit 872ce3a3bc

View File

@ -46,10 +46,10 @@ class InvoiceViewedActivity implements ShouldQueue
$fields = new \stdClass;
$fields->user_id = $event->invoice->user_id;
$fields->company_id = $event->invoice->company_id;
$fields->user_id = $event->invitation->user_id;
$fields->company_id = $event->invitation->company_id;
$fields->activity_type_id = Activity::VIEW_INVOICE;
$fields->client_id = $event->invitation->client_id;
$fields->client_id = $event->invitation->invoice->client_id;
$fields->client_contact_id = $event->invitation->client_contact_id;
$fields->invitation_id = $event->invitation->id;
$fields->invoice_id = $event->invitation->invoice_id;