summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--includes/views/handlers/content_plugin_style_php_array_ac.inc5
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 9ea9618..67df7aa 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -72,6 +72,7 @@ Bugfixes:
- #577590 Add a visual indication to the fieldgroup title if the multigroup is required.
- #577590 Prevent validation errors when multigroup is not required and no subgroup of fields if filled in.
- #577580 Multigroup fields with empty values loose their ordering when saved via node_save.
+- #614292 by DeFr - Fix CCK Reference fields based on views broken by recent change in views_plugin_style Views 2.7 (#502348).
Changes:
- #421116 Move content.js to js/content.admin.js for consistency with location of new js files.
diff --git a/includes/views/handlers/content_plugin_style_php_array_ac.inc b/includes/views/handlers/content_plugin_style_php_array_ac.inc
index 4fb9cb4..abff82d 100644
--- a/includes/views/handlers/content_plugin_style_php_array_ac.inc
+++ b/includes/views/handlers/content_plugin_style_php_array_ac.inc
@@ -18,14 +18,17 @@ class content_plugin_style_php_array_ac extends views_plugin_style {
// TODO : We don't display grouping info for now.
// Could be useful for select widget, though.
+ $this->view->row_index = 0;
foreach ($sets as $title => $records) {
foreach ($records as $label => $row) {
$results[$row->{$base_field}] = array(
'title' => $row->{$title_field_alias},
'rendered' => $this->row_plugin->render($row),
);
+ $this->view->row_index++;
}
}
+ unset($this->view->row_index);
return $results;
}
-} \ No newline at end of file
+}