From ee6ab43a8c244b01711165f7dd7feb84b8f650db Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 26 Mar 2019 16:54:11 +0100 Subject: [PATCH] minor fix Former-commit-id: e1a238bd34f4264e6be9c8a826cc1057578dd0a7 --- .../operation/agentes/pandora_networkmap.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/agentes/pandora_networkmap.php b/pandora_console/operation/agentes/pandora_networkmap.php index 9efde3fa6f..86c9c5bbee 100644 --- a/pandora_console/operation/agentes/pandora_networkmap.php +++ b/pandora_console/operation/agentes/pandora_networkmap.php @@ -171,7 +171,10 @@ if (enterprise_installed()) { $description = get_parameter('description', ''); $values['description'] = $description; - $dont_show_subgroups = 0; + $dont_show_subgroups = (int) get_parameter_checkbox( + 'dont_show_subgroups', + 0 + ); $node_radius = (int) get_parameter('node_radius', 40); $row = db_get_row('tmap', 'id', $id); $filter = json_decode($row['filter'], true); @@ -250,7 +253,10 @@ if ($new_networkmap || $save_networkmap) { '' ); $source = (string) get_parameter('source', 'group'); - $dont_show_subgroups = (int) get_parameter('dont_show_subgroups', 0); + $dont_show_subgroups = (int) get_parameter_checkbox( + 'dont_show_subgroups', + 0 + ); $node_radius = (int) get_parameter('node_radius', 40); $description = get_parameter('description', '');