From 89044846d52d3f7136efd1d3501e4ea3730e28f7 Mon Sep 17 00:00:00 2001 From: jdorn Date: Tue, 10 Sep 2013 09:12:45 -0700 Subject: [PATCH] Fix bug with charts. If no 'columns' parameter is passed, it should default to all the columns in order like it says in the documentation. --- classes/headers/ChartHeader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/headers/ChartHeader.php b/classes/headers/ChartHeader.php index 0d2a089d..0714c637 100644 --- a/classes/headers/ChartHeader.php +++ b/classes/headers/ChartHeader.php @@ -323,6 +323,8 @@ public static function beforeRender(&$report) { } else { $rows = $report->options['Rows']; + + if(!$params['columns']) $params['columns'] = range(1,count($rows[0]['values'])); } self::getRowInfo($rows, $params, $num, $report);