mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#12697 Fixed search
This commit is contained in:
parent
2d06d5f94d
commit
7390336da0
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user