summaryrefslogtreecommitdiff
path: root/report/report_factory.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-01-11 14:33:46 +0100
committerMartin Gütlein <martin.guetlein@gmail.com>2010-01-11 14:33:46 +0100
commit86f056bbb8f8b083313a8dd55b1b8aa47574afe1 (patch)
treef96a2d882da5a8b586a15468d9bf07ca7e079007 /report/report_factory.rb
parentbc6a5145c842d9e47a0f36955d87484ac2f19061 (diff)
adjusted reporting to recent api changes
Diffstat (limited to 'report/report_factory.rb')
-rw-r--r--report/report_factory.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/report/report_factory.rb b/report/report_factory.rb
index 8b14e0a..5120a51 100644
--- a/report/report_factory.rb
+++ b/report/report_factory.rb
@@ -199,8 +199,8 @@ class Reports::ReportContent
vals = validation_set.to_array(validation_attributes)
#PENDING rexml strings in tables not working when >66
vals = vals.collect{|a| a.collect{|v| v.to_s[0,66] }}
- #transpose values if there more than 7 columns
- transpose = vals[0].size>7 && vals[0].size>vals.size
+ #transpose values if there more than 4 columns, and there are more than columns than rows
+ transpose = vals[0].size>4 && vals[0].size>vals.size
@xml_report.add_table(section_table, table_title, vals, !transpose, transpose)
end