X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/18da4a96827fd65559a6f64334c3d8a313884f84..bf3cc4b6658497e7f7d15bbe16d1795fefb7cf05:/SL/ReportGenerator.pm diff --git a/SL/ReportGenerator.pm b/SL/ReportGenerator.pm index f3030b284..57a8c958c 100644 --- a/SL/ReportGenerator.pm +++ b/SL/ReportGenerator.pm @@ -279,7 +279,7 @@ sub prepare_html_content { foreach my $col_name (@visible_columns) { my $col = $row->{$col_name}; $col->{CELL_ROWS} = [ ]; - foreach my $i (0 .. scalar(@{ $col->{data} })) { + foreach my $i (0 .. scalar(@{ $col->{data} }) - 1) { push @{ $col->{CELL_ROWS} }, { 'data' => $self->html_format($col->{data}->[$i]), 'link' => $col->{link}->[$i], @@ -329,7 +329,7 @@ sub generate_html_content { my $self = shift; my $variables = $self->prepare_html_content(); - return $self->{form}->parse_html_template('report_generator/html_report', $variables); + return $self->{form}->parse_html_template2('report_generator/html_report', $variables); } sub verify_paper_size {