Bug 12622: Fix export report as ods
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 22 Jul 2014 10:15:35 +0000 (12:15 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 29 Jul 2014 14:29:16 +0000 (11:29 -0300)
commit0e936ce22062910f1a52f6452d2a1b06e46ff001
tree0b96f59e75ef77cc124d90af7901b34c203e308a
parent9c138fbfb15b2a1a7f4731686241ba116dcf2bc2
Bug 12622: Fix export report as ods

Bug 11679 introduces an ods export for reports.

It looks quite buggy:
1/ You get a Perl error if the report has no results
2/ The ods file contains 1 lines less than the total results.

Test plan:
After applying this patch, try to export a report which has no results
and verify you get an ods file with headers only.
Try to export a report which has a least 1 result and verify the
generated ods has the right number of lines.

Signed-off-by: Robert Higgins <robert.higgins@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Fixes the reported problem, passes all tests and QA script.
Added the sign-off line for Robert.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
reports/guided_reports.pl