projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d74ef
)
Wenn eine Tabellenzelle gar keinen Inhalt hat, dann zumindest ein erzwingen...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 14 Nov 2007 08:27:39 +0000
(08:27 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 14 Nov 2007 08:27:39 +0000
(08:27 +0000)
SL/ReportGenerator.pm
patch
|
blob
|
history
diff --git
a/SL/ReportGenerator.pm
b/SL/ReportGenerator.pm
index
617a274
..
67d69a9
100644
(file)
--- a/
SL/ReportGenerator.pm
+++ b/
SL/ReportGenerator.pm
@@
-311,7
+311,15
@@
sub prepare_html_content {
'data' => $self->html_format($col->{data}->[$i]),
'link' => $col->{link}->[$i],
};
- };
+ }
+
+ # Force at least a to be displayed so that browsers
+ # 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}) {
+ $col->{CELL_ROWS}->[0]->{data} = ' ';
+ }
}
my $row_data = {