diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 73c4dd4730..6ae2279940 100644 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -23,6 +23,8 @@ if (! check_acl ($config['id_user'], 0, "IW")) { exit; } +enterprise_include('/godmode/reporting/reporting_builder.item_editor.php'); + switch ($action) { case 'new': $actionParameter = 'save'; @@ -57,11 +59,17 @@ switch ($action) { $exception_condition = 0; $exception_condition_value = 10; $show_graph = 0; + $show_in_two_columns = 0; + $show_in_landscape = 0; break; default: $actionParameter = 'update'; $item = get_db_row_filter('treport_content', array('id_rc' => $idItem)); + $style = json_decode(safe_output($item['style']), true); + $show_in_two_columns = $style['show_in_two_columns']; + $show_in_landscape = $style['show_in_landscape']; + $type = $item['type']; switch ($type) { case 'avg_value': @@ -456,6 +464,16 @@ print_input_hidden('id_item', $idItem);