mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Minor fixes for task filters
This commit is contained in:
parent
43f904bdbe
commit
ab6f86f404
@ -136,8 +136,13 @@ class TaskFilters extends QueryFilters
|
||||
|
||||
$status_parameters = explode(',', $value);
|
||||
|
||||
if(count($status_parameters) >= 1)
|
||||
$this->builder->whereIn('status_id', $this->transformKeys($status_parameters));
|
||||
if(count($status_parameters) >= 1){
|
||||
|
||||
$this->builder->where(function ($query) use ($status_parameters) {
|
||||
$query->whereIn('status_id', $this->transformKeys($status_parameters))->whereNull('invoice_id');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return $this->builder;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user