Fixed in Custom graphs

This commit is contained in:
manuel.montes 2018-07-18 13:33:53 +02:00
parent db317325fb
commit 0621b5a3ac
1 changed files with 6 additions and 4 deletions

View File

@ -556,11 +556,13 @@ if (is_ajax ()) {
} }
} }
else { else {
$sql = 'SELECT DISTINCT nombre, id_agente_modulo $sql = 'SELECT DISTINCT nombre, t1.id_agente_modulo
FROM tagente_modulo t1 FROM tagente_modulo t1, tagente_estado t2
WHERE ' . $filter . ' WHERE t1.id_agente_modulo = t2.id_agente_modulo AND
' . $filter . '
AND t1.delete_pending = 0 AND t1.delete_pending = 0
AND t1.id_agente IN (' . implode(',', $idAgents) . ')'; AND t1.id_agente IN (' . implode(',', $idAgents) . ')
AND t2.datos NOT LIKE "%image%"';
if ($selection_mode == 'common') { if ($selection_mode == 'common') {
$sql .= ' AND ( $sql .= ' AND (