From 943901c174e09b90b22fa33232c989b0c457d182 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 18 Jan 2008 10:34:59 +0000 Subject: [PATCH] Zelleninhalte, die nur "0" sind (also die Zahl "0"), wurden in PDF- und HTML-Ausgabe nicht angezeigt. --- SL/ReportGenerator.pm | 2 +- templates/webpages/report_generator/html_report_de.html | 2 +- templates/webpages/report_generator/html_report_master.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 %] -- 2.20.1