resetting context style view results with array_values() to prevent non-row-indexed...
authorKris
Fri, 16 Sep 2011 19:40:38 +0000 (14:40 -0500)
committerKris
Fri, 16 Sep 2011 19:40:38 +0000 (14:40 -0500)
views_content/plugins/views/views_content_plugin_style_ctools_context.inc

index 323c9c4..aafbebc 100644 (file)
@@ -31,7 +31,7 @@ class views_content_plugin_style_ctools_context extends views_plugin_style {
     // Some engines like solr key results on ids, but rendering really expects
     // things to be keyed exclusively by row index. Using array_values()
     // guarantees that.
-    $result = array_values($this->view->result);
+    $this->view->result = array_values($this->view->result);
 
     // Group the rows according to the grouping field, if specified.
     $sets = $this->render_grouping($this->view->result, $this->options['grouping']);