fix params loading in Report

This commit is contained in:
Oliver Gorwits
2014-04-18 23:25:50 +01:00
parent 9fa855ceb8
commit 0b50b54a67

View File

@@ -19,10 +19,11 @@ get '/report/*' => require_login sub {
->get_distinct_col('class') ];
# this is a bit fragile... three params currently
if (3 == scalar keys params()) {
my %params = request->params();
if (3 == scalar keys %params) {
foreach my $col ( @{ var('module_options') } ) {
next unless $col->{default} eq 'on';
params->{ $col->{name} } = 'checked';
%params{ $col->{name} } = 'checked';
}
}
}