Fixed id_agente_modulo in sql condiction

This commit is contained in:
Daniel Maya 2021-04-13 12:24:35 +02:00
parent 751d7ec3cf
commit bdbfe81f31
1 changed files with 4 additions and 0 deletions

View File

@ -244,6 +244,10 @@ if ($ag_modulename != '') {
$sql_conditions .= " AND tagente_modulo.nombre LIKE '%".$ag_modulename."%'";
}
if ($id_module) {
$sql_conditions .= sprintf(' AND tagente_modulo.id_agente_modulo = \'%d\'', $id_module);
}
if ($module_option !== 0) {
if ($module_option == 1) {
// Only enabled