From 54b9d3f65de3a8e7a0169ea56b8f5b601bc84437 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Dec 2022 13:45:51 +1100 Subject: [PATCH] Ensure client is tagged on view quote activity --- app/Listeners/Quote/QuoteViewedActivity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Listeners/Quote/QuoteViewedActivity.php b/app/Listeners/Quote/QuoteViewedActivity.php index 0a25130e6807..777f86bfbb1f 100644 --- a/app/Listeners/Quote/QuoteViewedActivity.php +++ b/app/Listeners/Quote/QuoteViewedActivity.php @@ -50,7 +50,7 @@ class QuoteViewedActivity implements ShouldQueue $fields->user_id = $event->invitation->quote->user_id; $fields->company_id = $event->invitation->company_id; $fields->activity_type_id = Activity::VIEW_QUOTE; - $fields->client_id = $event->invitation->client_id; + $fields->client_id = $event->invitation->quote->client_id; $fields->client_contact_id = $event->invitation->client_contact_id; $fields->invitation_id = $event->invitation->id; $fields->quote_id = $event->invitation->quote_id;