Merge branch 'ent-12697-monitor-detail-view-no-funciona-el-filtrado-por-campo-search' into 'develop'

Ent 12697 monitor detail view no funciona el filtrado por campo search

See merge request artica/pandorafms!6808
This commit is contained in:
Rafael Ameijeiras 2023-12-26 08:43:30 +00:00
commit dca4c98660
1 changed files with 3 additions and 8 deletions

View File

@ -441,18 +441,13 @@ if ($ag_freestring != '') {
SELECT 1
FROM tagente
WHERE tagente.id_agente = tagente_modulo.id_agente
AND (
tagente.nombre '.$not_condition.' LIKE \'%%'.$ag_freestring.'%%\' OR tagente.alias '.$not_condition.' LIKE \'%%'.$ag_freestring.'%%\'
)
AND (
tagente_modulo.nombre '.$not_condition.' LIKE \'%%'.$ag_freestring.'%%\'
AND (tagente.nombre '.$not_condition.' LIKE \'%%'.$ag_freestring.'%%\'
OR tagente.alias '.$not_condition.' LIKE \'%%'.$ag_freestring.'%%\'
OR tagente_modulo.nombre '.$not_condition.' LIKE \'%%'.$ag_freestring.'%%\'
OR tagente_modulo.descripcion '.$not_condition.' LIKE \'%%'.$ag_freestring.'%%\')
)';
}
// Status selector.
if ($status == AGENT_MODULE_STATUS_NORMAL) {
// Normal.