diff --git a/pandora_console/include/ajax/visual_console_builder.ajax.php b/pandora_console/include/ajax/visual_console_builder.ajax.php index b941c022f8..51ea636659 100755 --- a/pandora_console/include/ajax/visual_console_builder.ajax.php +++ b/pandora_console/include/ajax/visual_console_builder.ajax.php @@ -581,9 +581,22 @@ switch ($action) { $values['label_position'] = $label_position; $values['show_on_top'] = $show_on_top; - $values['cache_expiration'] = $cache_expiration; - // In Graphs, background color is stored in column image (sorry) + switch ($type) { + case 'line_item': + case 'box_item': + case 'clock': + case 'icon': + case 'label': + $values['cache_expiration'] = 0; + break; + + default: + $values['cache_expiration'] = $cache_expiration; + break; + } + + // In Graphs, background color is stored in column image (sorry). if ($type == 'module_graph') { $values['image'] = $background_color; $values['type_graph'] = $type_graph; @@ -1417,9 +1430,21 @@ switch ($action) { $values['show_on_top'] = $show_on_top; $values['image'] = $background_color; $values['type_graph'] = $type_graph; - $values['id_custom_graph'] = $id_custom_graph; - $values['cache_expiration'] = $cache_expiration; + + switch ($type) { + case 'line_item': + case 'box_item': + case 'clock': + case 'icon': + case 'label': + $values['cache_expiration'] = 0; + break; + + default: + $values['cache_expiration'] = $cache_expiration; + break; + } switch ($type) { case 'line_item': diff --git a/pandora_console/include/functions_visual_map_editor.php b/pandora_console/include/functions_visual_map_editor.php index b51f9fce76..100e918044 100755 --- a/pandora_console/include/functions_visual_map_editor.php +++ b/pandora_console/include/functions_visual_map_editor.php @@ -1149,6 +1149,7 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) 'label', 'datos', 'auto_sla_graph', + 'group_item', 'bars_graph', 'donut_graph', 'color_cloud',