mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Fixes for edge cases in reports
This commit is contained in:
parent
1b898508f8
commit
382ab1e10d
@ -451,7 +451,7 @@ class BaseExport
|
||||
{
|
||||
if (isset($this->input['client_id']) && $this->input['client_id'] != 'all') {
|
||||
$client = Client::withTrashed()->find($this->input['client_id']);
|
||||
$this->client_description = $client->present()->name;
|
||||
$this->client_description = $client->present()->name ?? '';
|
||||
return $query->where('client_id', $this->input['client_id']);
|
||||
} elseif(isset($this->input['clients']) && count($this->input['clients']) > 0) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user