1
0
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:
David Bomba 2023-10-25 12:13:06 +11:00
parent 43f904bdbe
commit ab6f86f404

View File

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