From a24debb1507e35fa8edd41831880394e0c059600 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 11 Oct 2013 16:29:34 +0200 Subject: [PATCH] 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 --- tools/inventory.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/[^\.]*\.//; -- 2.39.5