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