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,14 +644,16 @@ 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.
$output .= html_print_button( if (is_metaconsole() === false) {
__('Create agent module'), $output .= html_print_button(
'create_module_agent_single', __('Create agent module'),
false, 'create_module_agent_single',
'show_add_module()', false,
'class="sub add invisible"', 'show_add_module()',
true 'class="sub add invisible"',
); true
);
}
} }
if (isset($_POST['print_copy_oid'])) { if (isset($_POST['print_copy_oid'])) {
@ -1238,13 +1240,15 @@ 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">';
$output .= html_print_submit_button( if (is_metaconsole() === false) {
__('Create agent modules'), $output .= html_print_submit_button(
'create_modules_agent', __('Create agent modules'),
false, 'create_modules_agent',
['class' => 'sub add'], false,
true ['class' => 'sub add'],
); 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(