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:
parent
bf22bb9143
commit
2fc309beee
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user