From: Jonathan Druart Date: Fri, 11 Oct 2013 14:29:34 +0000 (+0200) Subject: Bug 7684: (follow-up) fix crash when generating the CSV X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=inline;h=a24debb1507e35fa8edd41831880394e0c059600;p=koha.git Bug 7684: (follow-up) fix crash when generating the CSV The cgi argument in missing for routine C4::Reports::Guided::_get_column_defs. It causes a crash on generating the CSV file. Signed-off-by: Koha Team Amu Signed-off-by: Kyle M Hall Signed-off-by: Galen Charlton --- diff --git a/tools/inventory.pl b/tools/inventory.pl index dbd73ac3a1..f5a542b20d 100755 --- a/tools/inventory.pl +++ b/tools/inventory.pl @@ -296,7 +296,7 @@ if (defined $input->param('CSVexport') && $input->param('CSVexport') eq 'on'){ -attachment => 'inventory.csv', ); - my $columns_def_hashref = C4::Reports::Guided::_get_column_defs(); + my $columns_def_hashref = C4::Reports::Guided::_get_column_defs($input); foreach my $key ( keys %$columns_def_hashref ) { my $initkey = $key; $key =~ s/[^\.]*\.//;