diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3c8e5f8df17..4c32fa3fc71 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6664,7 +6664,7 @@ class Form * @param string $htmlname Name of select html * @param string $filtertype Filter on ticket type * @param int $limit Limit on number of returned lines - * @param string $filterkey Filter on product + * @param string $filterkey Filter on ticket ref or subject * @param int $status Ticket status * @param int $outputmode 0=HTML select string, 1=Array * @param string $showempty '' to not show empty line. Translation key to show an empty line. '1' show empty line with no text. @@ -6696,7 +6696,7 @@ class Form if (count($scrit) > 1) $sql .= "("; foreach ($scrit as $crit) { if ($i > 0) $sql .= " AND "; - $sql .= "(p.ref LIKE '".$this->db->escape($prefix.$crit)."%' OR p.label LIKE '".$this->db->escape($prefix.$crit)."%'"; + $sql .= "(p.ref LIKE '".$this->db->escape($prefix.$crit)."%' OR p.subject LIKE '".$this->db->escape($prefix.$crit)."%'"; $sql .= ")"; $i++; }