Merge branch 'ent-6681-SNMP-Browser-multiple-remote-components-y-abrir-ventana-adicional-en-el-navegador' into 'develop'

Ent 6681 snmp browser multiple remote components y abrir ventana adicional en el navegador

See merge request artica/pandorafms!3608
This commit is contained in:
Daniel Rodriguez 2020-12-23 16:55:56 +01:00
commit fc49958c96
3 changed files with 3 additions and 3 deletions

View File

@ -170,7 +170,7 @@ if (is_ajax()) {
$id_target = explode(',', $id_items[0]);
}
if (empty($id_items[0])) {
if (empty($id_items[0]) && $module_target !== 'network_component') {
echo json_encode([0 => -1]);
exit;
}

View File

@ -617,7 +617,7 @@ function snmp_browser_print_oid(
$output .= html_print_table($table, true);
$url = 'index.php?'.'sec=gmodules&'.'sec2=godmode/modules/manage_network_components';
$output .= '<form id="snmp_create_module" style="text-align: center; margin: 10px" method="post" action="'.$url.'">';
$output .= '<form id="snmp_create_module" style="text-align: center; margin: 10px" target="_blank" method="post" action="'.$url.'">';
$output .= html_print_input_hidden('create_network_from_snmp_browser', 1, true);
$output .= html_print_input_hidden('id_component_type', 2, true);
$output .= html_print_input_hidden('type', 17, true);

View File

@ -541,7 +541,7 @@ function setOID() {
}
/**
* Create module on selected module_target (agent, networlk component or policy).
* Create module on selected module_target (agent, network component or policy).
*
* @param string module_target Target to create module.
* @param return_values Return snmp values.