diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 0c323517f39..4fdfd657f0c 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -329,7 +329,7 @@ if (!empty($search_progresscalc)) { if ($search_task_budget_amount) { $morewherefilterarray[] = natural_search('t.budget_amount', $search_task_budget_amount, 1, 1); } -if (in_array($search_task_billable, ['yes', 'no'])) { +if ($search_task_billable && $search_task_billable != '-1') { $morewherefilterarray[] = " t.billable = ".($search_task_billable == "yes" ? 1 : 0); } //var_dump($morewherefilterarray);