fixed cache in label, icon, clock, box and line
This commit is contained in:
parent
552467286c
commit
76e6588b7a
|
@ -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':
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue