mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 10:54:34 -04:00
Fixes for client portal when archived user attempts to view items
This commit is contained in:
parent
6db335575c
commit
3c72418244
@ -50,7 +50,7 @@ class DocumentsTable extends Component
|
|||||||
{
|
{
|
||||||
MultiDB::setDb($this->db);
|
MultiDB::setDb($this->db);
|
||||||
|
|
||||||
$this->client = Client::with('company')->find($this->client_id);
|
$this->client = Client::withTrashed()->with('company')->find($this->client_id);
|
||||||
|
|
||||||
$this->company = $this->client->company;
|
$this->company = $this->client->company;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ class PaymentMethodsTable extends Component
|
|||||||
{
|
{
|
||||||
MultiDB::setDb($this->db);
|
MultiDB::setDb($this->db);
|
||||||
|
|
||||||
$this->client = Client::with('company')->find($this->client_id);
|
$this->client = Client::withTrashed()->with('company')->find($this->client_id);
|
||||||
|
|
||||||
$this->company = $this->client->company;
|
$this->company = $this->client->company;
|
||||||
}
|
}
|
||||||
|
@ -240,7 +240,6 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||||||
{
|
{
|
||||||
return $this
|
return $this
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
// ->company()
|
|
||||||
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user