Let create a group status visual map element without image selected - #1245

This commit is contained in:
enriquecd 2017-09-13 17:07:35 +02:00
parent 754697f51c
commit 7b2e2fadc6
2 changed files with 2 additions and 2 deletions

View File

@ -691,7 +691,7 @@ function create_button_palette_callback() {
alert('Undefined height');
validate = false;
}
if ((values['label'] == '') && (values['image'] == '')) {
if ((values['label'] == '') && (values['image'] == '') && (values['show_statistics']) == false) {
alert($("#message_alert_no_label_no_image").html());
validate = false;
}

View File

@ -1213,7 +1213,7 @@ function visual_map_print_item($mode = "read", $layoutData,
break;
case STATIC_GRAPH:
case GROUP_ITEM:
if ($layoutData['image'] != null) {
if ($layoutData['image'] != null || $layoutData['show_statistics'] == 1) {
$img_style_title = strip_tags($label);