1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for passing client_id into final context

This commit is contained in:
Benjamin Beganović 2024-02-19 17:52:07 +01:00
parent bf22bb9143
commit 2fc309beee

View File

@ -46,9 +46,11 @@ class Methods extends Component
{ {
/** @var \App\Models\ClientContact $contact */ /** @var \App\Models\ClientContact $contact */
$contact = auth()->guard('contact')->user(); $contact = auth()->guard('contact')->user();
$this->dispatch('purchase.context', property: 'client_id', value: $contact->client->hashed_id); $this->dispatch('purchase.context', property: 'client_id', value: $contact->client->hashed_id);
$this->context['client_id'] = $contact->client->hashed_id;
nlog($this->context); nlog($this->context);
$invoice = $this->subscription $invoice = $this->subscription