Skip to content
Snippets Groups Projects
Commit 38c280ea authored by marty2081's avatar marty2081 Committed by Andriy Podanenko
Browse files

Issue #1907478 by Marty2081, Raphael D.rst: Fixed Gmap gmap style views plugin...

Issue #1907478 by Marty2081, Raphael D.rst: Fixed Gmap gmap style views plugin using non-existing property geofield.
parent f7cdf8ea
No related branches found
No related tags found
No related merge requests found
...@@ -180,7 +180,7 @@ class gmap_plugin_style_gmap extends views_plugin_style { ...@@ -180,7 +180,7 @@ class gmap_plugin_style_gmap extends views_plugin_style {
$lon = (float)$row->{$lon_field}; $lon = (float)$row->{$lon_field};
} }
else if ($this->options['datasource'] == 'geofield') { else if ($this->options['datasource'] == 'geofield') {
$geofield_name = 'field_' . $this->options['markerfield']; $geofield_name = 'field_' . $this->options['geofield'];
$geofield = isset($row->{$geofield_name}[0]['raw']) ? $row->{$geofield_name}[0]['raw'] : NULL; $geofield = isset($row->{$geofield_name}[0]['raw']) ? $row->{$geofield_name}[0]['raw'] : NULL;
if ($geofield) { if ($geofield) {
$lat = (float)$geofield[$lat_field]; $lat = (float)$geofield[$lat_field];
......
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