From: Moritz Bunkus Date: Fri, 18 Jan 2008 10:34:59 +0000 (+0000) Subject: Zelleninhalte, die nur "0" sind (also die Zahl "0"), wurden in PDF- und HTML-Ausgabe... X-Git-Tag: release-2.6.0beta1~336 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=943901c174e09b90b22fa33232c989b0c457d182;p=kivitendo-erp.git Zelleninhalte, die nur "0" sind (also die Zahl "0"), wurden in PDF- und HTML-Ausgabe nicht angezeigt. --- diff --git a/SL/ReportGenerator.pm b/SL/ReportGenerator.pm index e00b93f3d..588b824fd 100644 --- a/SL/ReportGenerator.pm +++ b/SL/ReportGenerator.pm @@ -343,7 +343,7 @@ sub prepare_html_content { # will format the table cell (e.g. borders etc). if (!scalar @{ $col->{CELL_ROWS} }) { push @{ $col->{CELL_ROWS} }, { 'data' => ' ' }; - } elsif ((1 == scalar @{ $col->{CELL_ROWS} }) && !$col->{CELL_ROWS}->[0]->{data}) { + } elsif ((1 == scalar @{ $col->{CELL_ROWS} }) && (!defined $col->{CELL_ROWS}->[0]->{data} || ($col->{CELL_ROWS}->[0]->{data} eq ''))) { $col->{CELL_ROWS}->[0]->{data} = ' '; } } diff --git a/templates/webpages/report_generator/html_report_de.html b/templates/webpages/report_generator/html_report_de.html index c361f8e25..9b51544cf 100644 --- a/templates/webpages/report_generator/html_report_de.html +++ b/templates/webpages/report_generator/html_report_de.html @@ -59,7 +59,7 @@ [%- IF tdclass %] class="[% tdclass %]"[%- END %]> [%- IF col.raw_data %][%- col.raw_data %][%- END %] [%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] - [%- IF cell_row.data %] + [%- IF cell_row.data != '' %] [%- IF cell_row.link %][%- END %] [%- cell_row.data %] [%- IF cell_row.link %][%- END %] diff --git a/templates/webpages/report_generator/html_report_master.html b/templates/webpages/report_generator/html_report_master.html index b1bd96d31..3c049d541 100644 --- a/templates/webpages/report_generator/html_report_master.html +++ b/templates/webpages/report_generator/html_report_master.html @@ -59,7 +59,7 @@ [%- IF tdclass %] class="[% tdclass %]"[%- END %]> [%- IF col.raw_data %][%- col.raw_data %][%- END %] [%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] - [%- IF cell_row.data %] + [%- IF cell_row.data != '' %] [%- IF cell_row.link %][%- END %] [%- cell_row.data %] [%- IF cell_row.link %][%- END %]