[#133] Custom reports respect sorting in SQL

This commit is contained in:
Oliver Gorwits
2014-11-16 22:29:11 +00:00
parent f6ae7be611
commit a8208121c2
4 changed files with 13 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ foreach my $report (@{setting('reports')}) {
if (request->is_ajax) {
template 'ajax/report/generic_report.tt',
{ results => \@results,
is_custom_report => true,
headings => [map {values %{$_}} @{$report->{columns}}],
columns => [map {keys %{$_}} @{$report->{columns}}] },
{ layout => undef };