10839 Fixed search
This commit is contained in:
parent
ca3ad36fb6
commit
6bfdfa5a3b
|
@ -563,7 +563,14 @@ if ($search != '') {
|
||||||
if ($id != '') {
|
if ($id != '') {
|
||||||
$aux = $id[0]['id_agent'];
|
$aux = $id[0]['id_agent'];
|
||||||
$search_sql = sprintf(
|
$search_sql = sprintf(
|
||||||
' AND ( `nombre` LIKE "%%%s%%" OR tagente.id_agente = %d',
|
' AND ( nombre LIKE "%%%s%%"
|
||||||
|
OR alias LIKE "%%%s%%"
|
||||||
|
OR comentarios LIKE "%%%s%%"
|
||||||
|
OR EXISTS (SELECT * FROM tagent_custom_data WHERE id_agent = id_agente AND description LIKE "%%%s%%")
|
||||||
|
OR tagente.id_agente = %d',
|
||||||
|
$search,
|
||||||
|
$search,
|
||||||
|
$search,
|
||||||
$search,
|
$search,
|
||||||
$aux
|
$aux
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue