diff --git a/C4/ImportExportFramework.pm b/C4/ImportExportFramework.pm index ef0b7ae852..43681369c4 100644 --- a/C4/ImportExportFramework.pm +++ b/C4/ImportExportFramework.pm @@ -415,6 +415,8 @@ sub _export_table_excel $data = $hashRef->{$_->{name}}; if ($_->{type} eq 'Number' && !defined($data)) { $data = '0'; + } elsif ($_->{type} eq 'String' && !defined($data)) { + $data = q{}; } elsif ($_->{type} eq 'String' && (!$data && $data ne '0')) { $data = '#'; }