Fixed % with sprintf

This commit is contained in:
Daniel Maya 2020-01-30 13:02:33 +01:00
parent 1134c041f2
commit 891c517611
1 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ class Tree
return ''; return '';
} }
return " AND tam.nombre LIKE '%%".$this->filter['searchModule']."%%' "; return " AND tam.nombre LIKE '%%".str_replace('%', '%%', $this->filter['searchModule'])."%%' ";
} }
@ -133,7 +133,7 @@ class Tree
return ''; return '';
} }
return " AND LOWER(ta.alias) LIKE LOWER('%%".$this->filter['searchAgent']."%%')"; return " AND LOWER(ta.alias) LIKE LOWER('%%".str_replace('%', '%%', $this->filter['searchAgent'])."%%')";
} }
@ -331,7 +331,7 @@ class Tree
return ''; return '';
} }
return " AND tg.nombre LIKE '%%".$this->filter['searchGroup']."%%'"; return " AND tg.nombre LIKE '%%".str_replace('%', '%%', $this->filter['searchGroup'])."%%'";
} }