mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for query name
This commit is contained in:
parent
f1ac238917
commit
3cd1d7767f
@ -282,9 +282,8 @@ abstract class QueryFilters
|
||||
if($value == 'true')
|
||||
{
|
||||
return $this->builder->leftJoin('clients', function($join) {
|
||||
$join->on('invoices.client_id', '=', 'clients.id')
|
||||
->where('clients.is_deleted', 0)
|
||||
->whereNull('clients.deleted_at');
|
||||
$join->on("{$this->builder->getQuery()->from}.client_id", '=', 'clients.id')
|
||||
->where('clients.is_deleted', 0);
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user