mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01: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);
|
||||
|
||||
$this->client = Client::with('company')->find($this->client_id);
|
||||
$this->client = Client::withTrashed()->with('company')->find($this->client_id);
|
||||
|
||||
$this->company = $this->client->company;
|
||||
|
||||
|
@ -29,7 +29,7 @@ class PaymentMethodsTable extends Component
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
@ -240,7 +240,6 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
||||
{
|
||||
return $this
|
||||
->withTrashed()
|
||||
// ->company()
|
||||
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user