From: Sven Schöling Date: Fri, 23 Oct 2009 16:11:48 +0000 (+0200) Subject: Reportgeerator: Reportzelle richtig initialisieren. X-Git-Tag: release-2.6.1beta1~151 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=863306157cee10bd58abb8f032083f04cea4e72b;p=kivitendo-erp.git Reportgeerator: Reportzelle richtig initialisieren. --- diff --git a/SL/ReportGenerator.pm b/SL/ReportGenerator.pm index 6c61acbc0..402f89d43 100644 --- a/SL/ReportGenerator.pm +++ b/SL/ReportGenerator.pm @@ -1,7 +1,6 @@ package SL::ReportGenerator; -#use strict; - +use Data::Dumper; use Encode; use IO::Wrap; use List::Util qw(max); @@ -338,7 +337,7 @@ sub prepare_html_content { next; } - my $col = $row->{$col_name}; + my $col = $row->{$col_name} || { data => [] }; $col->{CELL_ROWS} = [ ]; foreach my $i (0 .. scalar(@{ $col->{data} }) - 1) { push @{ $col->{CELL_ROWS} }, {