1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02: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 */
$contact = auth()->guard('contact')->user();
$this->dispatch('purchase.context', property: 'client_id', value: $contact->client->hashed_id);
$this->context['client_id'] = $contact->client->hashed_id;
nlog($this->context);
$invoice = $this->subscription