From fd2bfc82f2f1cb56856e1bfa6f645dc2878c3ceb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 2 Sep 2021 17:20:14 +0200 Subject: [PATCH] Fix #18581 Fix #18582 --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; }