Let create a group status visual map element without image selected - #1245
This commit is contained in:
parent
754697f51c
commit
7b2e2fadc6
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue