From ee3765b4c35c00a02e971704e9bf3ad86a86a4ac Mon Sep 17 00:00:00 2001 From: "tim.plunkett" <tim.plunkett@241634.no-reply.drupal.org> Date: Tue, 24 Jul 2012 17:17:25 +0200 Subject: [PATCH] Issue #1548948 by damiankloip, tim.plunkett: Fixed Add ability for field handlers to declare whether they can be 'grouped by' or not. --- plugins/views_plugin_display.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/views_plugin_display.inc b/plugins/views_plugin_display.inc index 59bec3b4aa2c..431277825ad5 100644 --- a/plugins/views_plugin_display.inc +++ b/plugins/views_plugin_display.inc @@ -985,7 +985,8 @@ function get_field_labels() { // Use func_get_arg so the function signature isn't amended // but we can still pass TRUE into the function to filter // by groupable handlers. - $groupable_only = func_get_arg(0); + $args = func_get_args(); + $groupable_only = isset($args[0]) ? $args[0] : FALSE; $options = array(); foreach ($this->get_handlers('relationship') as $relationship => $handler) { -- GitLab