Skip to content

Commit

Permalink
FIX #5537 AJAX project search does not work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgdf committed Jul 25, 2016
1 parent 47d7ac8 commit a9d75b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/class/html.formprojet.class.php
Expand Up @@ -140,8 +140,8 @@ function select_projects_list($socid=-1, $selected='', $htmlname='projectid', $m
if ($socid == 0) $sql.= " AND (p.fk_soc=0 OR p.fk_soc IS NULL)";
if ($socid > 0) $sql.= " AND (p.fk_soc=".$socid." OR p.fk_soc IS NULL)";
if (!empty($filterkey)) {
$sql .= ' AND p.title LIKE "%'.$this->db->escape($filterkey).'%"';
$sql .= ' OR p.ref LIKE "%'.$this->db->escape($filterkey).'%"';
$sql .= " AND p.title LIKE '%".$this->db->escape($filterkey)."%'";
$sql .= " OR p.ref LIKE '%".$this->db->escape($filterkey)."%'";
}
$sql.= " ORDER BY p.ref ASC";

Expand Down

0 comments on commit a9d75b2

Please sign in to comment.