parent
cd313d7506
commit
fd2bfc82f2
@ -6664,7 +6664,7 @@ class Form
|
|||||||
* @param string $htmlname Name of select html
|
* @param string $htmlname Name of select html
|
||||||
* @param string $filtertype Filter on ticket type
|
* @param string $filtertype Filter on ticket type
|
||||||
* @param int $limit Limit on number of returned lines
|
* @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 $status Ticket status
|
||||||
* @param int $outputmode 0=HTML select string, 1=Array
|
* @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.
|
* @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 .= "(";
|
if (count($scrit) > 1) $sql .= "(";
|
||||||
foreach ($scrit as $crit) {
|
foreach ($scrit as $crit) {
|
||||||
if ($i > 0) $sql .= " AND ";
|
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 .= ")";
|
$sql .= ")";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user