Issue #1061566 by ankur: fix problem with rewritten field values for marker bubbles...
authorAnkur Rishi
Tue, 25 Oct 2011 22:55:44 +0000 (15:55 -0700)
committerAnkur Rishi
Tue, 25 Oct 2011 22:55:44 +0000 (15:55 -0700)
gmap_plugin_style_gmap.inc

index 57d5f2f..4cace42 100644 (file)
@@ -138,7 +138,10 @@ class gmap_plugin_style_gmap extends views_plugin_style {
 
     // Group the rows according to the grouping field, if specified.
     $sets = $this->render_grouping($this->view->result, $this->options['grouping']);
-
+    
+    // Let's make sure the individual fields are rendered 
+    $this->render_fields($this->view->result);
+    
     // Render each group separately and concatenate.  Plugins may override this
     // method if they wish some other way of handling grouping.
     $output = '';
@@ -210,7 +213,7 @@ class gmap_plugin_style_gmap extends views_plugin_style {
           
           $bubbletext = NULL;
           if ($this->options['bubbletextenabled'] && !empty($bubbletext_field_alias) && !empty($row->{$bubbletext_field_alias})) {
-            $bubbletext = $this->view->field[$this->options['bubbletextfield']]->advanced_render($row);
+            $bubbletext = $this->rendered_fields[$row_index][$this->options['bubbletextfield']];
           }
 
           $marker = array(