Update tasks.php

This commit is contained in:
Laurent Destailleur 2025-02-13 14:38:49 +01:00 committed by Laurent Destailleur (aka Eldy)
parent fffb22421c
commit 89e9de5cec

View file

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