Merge branch 'ent-10342-14680-problema-con-las-busquedas-de-agentes-en-nodo' into 'develop'

Ent 10342 14680 problema con las busquedas de agentes en nodo

See merge request artica/pandorafms!5646
This commit is contained in:
Matias Didier 2023-04-20 10:28:54 +00:00
commit 086a6f72aa
1 changed files with 8 additions and 1 deletions

View File

@ -771,7 +771,14 @@ if ($search != '') {
if (empty($id) === false) {
$aux = $id[0]['id_agent'];
$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,
$aux
);