Skip to content
Snippets Groups Projects
Commit f1203055 authored by johnv's avatar johnv Committed by Andriy Podanenko
Browse files

Issue #1326176 by johnv, GiorgosK: Fixed Tooltip displays the NID if tooltip...

Issue #1326176 by johnv, GiorgosK: Fixed Tooltip displays the NID if tooltip field is an entity translatable field.
parent daed68af
No related branches found
No related tags found
No related merge requests found
...@@ -113,18 +113,6 @@ class gmap_plugin_style_gmap extends views_plugin_style { ...@@ -113,18 +113,6 @@ class gmap_plugin_style_gmap extends views_plugin_style {
$lon_field = $this->options['lonfield']; $lon_field = $this->options['lonfield'];
} }
$tooltip_field = '';
if ($this->options['tooltipenabled']) {
$tooltip_field_obj = $this->view->display_handler->get_handler('field', $this->options['tooltipfield']);
$tooltip_field = $tooltip_field_obj->field_alias;
}
$bubbletext_field_alias = '';
if ($this->options['bubbletextenabled']) {
$bubbletext_field_obj = $this->view->display_handler->get_handler('field', $this->options['bubbletextfield']);
$bubbletext_field_alias = $bubbletext_field_obj->field_alias;
}
// Determine fieldname for marker field. // Determine fieldname for marker field.
if ($this->options['markers'] == 'field') { if ($this->options['markers'] == 'field') {
$marker_field_obj = $this->view->display_handler->get_handler('field', $this->options['markerfield']); $marker_field_obj = $this->view->display_handler->get_handler('field', $this->options['markerfield']);
...@@ -251,9 +239,9 @@ class gmap_plugin_style_gmap extends views_plugin_style { ...@@ -251,9 +239,9 @@ class gmap_plugin_style_gmap extends views_plugin_style {
$offsets[$markername] = 0; $offsets[$markername] = 0;
} }
$tooltip = ""; $tooltip = '';
if ($this->options['tooltipenabled'] && !empty($tooltip_field) && !empty($row->{$tooltip_field})) { if ($this->options['tooltipenabled'] && !empty($this->rendered_fields[$row_index][$this->options['tooltipfield']])) {
$tooltip = $row->{$tooltip_field}; $tooltip = $this->rendered_fields[$row_index][$this->options['tooltipfield']];
} }
$bubbletext = NULL; $bubbletext = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment