Skip to content
Snippets Groups Projects
Commit 9e67249b authored by Juanjo Menent's avatar Juanjo Menent
Browse files

Merge remote-tracking branch 'upstream/3.9' into 3.9

parents 600a10fa e59a4d51
No related branches found
No related tags found
No related merge requests found
...@@ -140,8 +140,8 @@ class FormProjets ...@@ -140,8 +140,8 @@ class FormProjets
if ($socid == 0) $sql.= " AND (p.fk_soc=0 OR p.fk_soc IS NULL)"; 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 ($socid > 0) $sql.= " AND (p.fk_soc=".$socid." OR p.fk_soc IS NULL)";
if (!empty($filterkey)) { if (!empty($filterkey)) {
$sql .= ' AND p.title LIKE "%'.$this->db->escape($filterkey).'%"'; $sql .= " AND p.title LIKE '%".$this->db->escape($filterkey)."%'";
$sql .= ' OR p.ref LIKE "%'.$this->db->escape($filterkey).'%"'; $sql .= " OR p.ref LIKE '%".$this->db->escape($filterkey)."%'";
} }
$sql.= " ORDER BY p.ref ASC"; $sql.= " ORDER BY p.ref ASC";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment