mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
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['label_position'] = $label_position;
|
||||||
$values['show_on_top'] = $show_on_top;
|
$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') {
|
if ($type == 'module_graph') {
|
||||||
$values['image'] = $background_color;
|
$values['image'] = $background_color;
|
||||||
$values['type_graph'] = $type_graph;
|
$values['type_graph'] = $type_graph;
|
||||||
@ -1417,9 +1430,21 @@ switch ($action) {
|
|||||||
$values['show_on_top'] = $show_on_top;
|
$values['show_on_top'] = $show_on_top;
|
||||||
$values['image'] = $background_color;
|
$values['image'] = $background_color;
|
||||||
$values['type_graph'] = $type_graph;
|
$values['type_graph'] = $type_graph;
|
||||||
|
|
||||||
$values['id_custom_graph'] = $id_custom_graph;
|
$values['id_custom_graph'] = $id_custom_graph;
|
||||||
|
|
||||||
|
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;
|
$values['cache_expiration'] = $cache_expiration;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'line_item':
|
case 'line_item':
|
||||||
|
@ -1149,6 +1149,7 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background)
|
|||||||
'label',
|
'label',
|
||||||
'datos',
|
'datos',
|
||||||
'auto_sla_graph',
|
'auto_sla_graph',
|
||||||
|
'group_item',
|
||||||
'bars_graph',
|
'bars_graph',
|
||||||
'donut_graph',
|
'donut_graph',
|
||||||
'color_cloud',
|
'color_cloud',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user