Merge branch 'ent-11039-giss-snmp-browser-en-entornos-con-meta-no-funciona' into 'develop'

Ent 11039 [GISS] SNMP Browser en entornos con META no funciona.

See merge request artica/pandorafms!6592
This commit is contained in:
Rafael Ameijeiras 2023-11-27 12:06:52 +00:00
commit b15fc06870
1 changed files with 19 additions and 15 deletions

View File

@ -644,6 +644,7 @@ function snmp_browser_print_oid(
if (isset($_POST['print_create_agent_module'])) { if (isset($_POST['print_create_agent_module'])) {
// Hidden by default. // Hidden by default.
if (is_metaconsole() === false) {
$output .= html_print_button( $output .= html_print_button(
__('Create agent module'), __('Create agent module'),
'create_module_agent_single', 'create_module_agent_single',
@ -653,6 +654,7 @@ function snmp_browser_print_oid(
true true
); );
} }
}
if (isset($_POST['print_copy_oid'])) { if (isset($_POST['print_copy_oid'])) {
// Hidden by default. // Hidden by default.
@ -1238,6 +1240,7 @@ function snmp_browser_print_container(
if ($show_massive_buttons) { if ($show_massive_buttons) {
$output .= '<div id="snmp_create_buttons" style="display:none">'; $output .= '<div id="snmp_create_buttons" style="display:none">';
if (is_metaconsole() === false) {
$output .= html_print_submit_button( $output .= html_print_submit_button(
__('Create agent modules'), __('Create agent modules'),
'create_modules_agent', 'create_modules_agent',
@ -1245,6 +1248,7 @@ function snmp_browser_print_container(
['class' => 'sub add'], ['class' => 'sub add'],
true true
); );
}
if (is_management_allowed() === true && enterprise_installed()) { if (is_management_allowed() === true && enterprise_installed()) {
$output .= html_print_submit_button( $output .= html_print_submit_button(