Merge branch 'ent-13520-snmp-browser-no-muestra-aviso-si-no-puede-anadir-modulos-a-politicas-desde-meta-y-nodo' into 'develop'
Ent 13520 SNMP Browser no muestra aviso si no puede añadir módulos a políticas desde meta y nodo See merge request artica/pandorafms!7316
This commit is contained in:
commit
0e6814639b
|
@ -1588,7 +1588,12 @@ function snmp_browser_create_modules_snmp(
|
|||
|
||||
enterprise_include_once('include/functions_policies.php');
|
||||
foreach ($id_target as $policy) {
|
||||
$ids[] = policies_create_module($oid['oid'], $policy, 2, $values);
|
||||
$exist = db_get_row_filter('tpolicy_modules', ['name' => $oid['oid'], 'id_policy' => $policy], '*');
|
||||
if ($exist !== false) {
|
||||
$ids[] = false;
|
||||
} else {
|
||||
$ids[] = policies_create_module($oid['oid'], $policy, 2, $values);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue