[Koha-bugs] [Bug 11331] CSV export for viewlog.pl is missing newlines

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 8 13:14:17 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11331

--- Comment #13 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Comment on attachment 30493
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30493
[PASSED QA] Bug 11331 - CSV export for viewlog.pl is missing newlines

Review of attachment 30493:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=11331&attachment=30493)
-----------------------------------------------------------------

::: tools/viewlog.pl
@@ +201,5 @@
> +            my $csv = Text::CSV::Encoded->new( { encoding_out => 'utf8', sep_char => $delimiter } );
> +            $csv or die "Text::CSV::Encoded->new FAILED: " . Text::CSV::Encoded->error_diag();
> +            # First line with heading
> +            # Exporting bd id seems useless
> +            my @headings = grep { $_ ne 'action_id' } sort keys $data[0];

Raises an error with perl <= 5.10

Type of arg 1 to keys must be hash (not array element) at
/home/koha/src/tools/viewlog.pl line 214, near "];"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list