Skip to content

Commit

Permalink
FIX: Bad project filter in ticket list
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanjo Menent committed Feb 25, 2021
1 parent b7e2c7d commit e08bfab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/ticket/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
if (count($newarrayofstatus)) $sql .= natural_search($key, join(',', $newarrayofstatus), 2);
continue;
}
if ($key == 'fk_user_assign' || $key == 'fk_user_create')
if ($key == 'fk_user_assign' || $key == 'fk_user_create' || $key = 'fk_project')
{
if ($search[$key] > 0) $sql .= natural_search($key, $search[$key], 2);
continue;
Expand All @@ -362,7 +362,7 @@
}
if ($search_all) $sql .= natural_search(array_keys($fieldstosearchall), $search_all);
if ($search_societe) $sql .= natural_search('s.nom', $search_societe);
if ($search_fk_project) $sql .= natural_search('fk_project', $search_fk_project, 2);
//if ($search_fk_project) $sql .= natural_search('fk_project', $search_fk_project, 2);
if ($search_date_start) $sql .= " AND t.datec >= '".$db->idate($search_date_start)."'";
if ($search_date_end) $sql .= " AND t.datec <= '".$db->idate($search_date_end)."'";
if ($search_dateread_start) $sql .= " AND t.date_read >= '".$db->idate($search_dateread_start)."'";
Expand Down

0 comments on commit e08bfab

Please sign in to comment.