#8040 Fixed module graph

This commit is contained in:
Daniel Maya 2021-10-07 11:50:27 +02:00
parent 2118f44a7a
commit 49ffdf822b
1 changed files with 5 additions and 1 deletions

View File

@ -451,13 +451,17 @@ switch ($activeTab) {
$values['pos_y'] = get_parameter('top_'.$id, 0); $values['pos_y'] = get_parameter('top_'.$id, 0);
$type = db_get_value('type', 'tlayout_data', 'id', $id); $type = db_get_value('type', 'tlayout_data', 'id', $id);
switch ($type) { switch ($type) {
case MODULE_GRAPH:
case SIMPLE_VALUE_MAX: case SIMPLE_VALUE_MAX:
case SIMPLE_VALUE_MIN: case SIMPLE_VALUE_MIN:
case SIMPLE_VALUE_AVG: case SIMPLE_VALUE_AVG:
$values['period'] = get_parameter('period_'.$id, 0); $values['period'] = get_parameter('period_'.$id, 0);
break; break;
case MODULE_GRAPH:
$values['period'] = get_parameter('period_'.$id, 0);
unset($values['image']);
break;
case GROUP_ITEM: case GROUP_ITEM:
$values['id_group'] = get_parameter('group_'.$id, 0); $values['id_group'] = get_parameter('group_'.$id, 0);
$values['show_statistics'] = get_parameter('show_statistics', 0); $values['show_statistics'] = get_parameter('show_statistics', 0);