diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index a5df5e31c0..f2045bf7a1 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -1284,12 +1284,11 @@ foreach ($modules as $module) { if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW')) { // Check module relatonships to show warning message. - $module_children = json_encode(get_children_module($module['id_agente_modulo'], 'nombre')); $url = htmlentities('index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$module['id_agente_modulo']); // Delete module. $data[9] = ''; + onClick="get_children_modules(false, \''.$module['id_agente_modulo'].'\', \''.$url.'\')">'; $data[9] .= html_print_image( 'images/cross.png', @@ -1314,8 +1313,7 @@ foreach ($modules as $module) { } if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW')) { - echo '
'; + echo ''; } html_print_table($table); @@ -1349,6 +1347,8 @@ if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW')) { false, 'class="sub next"' ); + + echo ''; echo '
'; } @@ -1357,7 +1357,18 @@ if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW')) {