Skip to content

Commit

Permalink
Fix bug with charts. If no 'columns' parameter is passed, it should d…
Browse files Browse the repository at this point in the history
…efault to all the columns in order like it says in the documentation.
  • Loading branch information
jdorn committed Sep 10, 2013
1 parent 5d6d945 commit 8904484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/headers/ChartHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8904484

Please sign in to comment.