1
0
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:
David Bomba 2023-02-09 11:24:01 +11:00
parent 6db335575c
commit 3c72418244
3 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -240,7 +240,6 @@ class ClientContact extends Authenticatable implements HasLocalePreference
{
return $this
->withTrashed()
// ->company()
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
}