Merge remote branch 'kc/master' into new/enh/bug_5917
[koha_fer] / C4 / Record.pm
index b313fb8..990bb50 100644 (file)
@@ -411,6 +411,8 @@ sub marcrecord2csv {
        foreach (@marcfields) {
 
            my $field = $_->{field};
+        # Remove any blank char that might have unintentionally insered into the tag name
+        $field =~ s/\s+//g; 
 
            # If we have a user-supplied header, we use it
            if (exists $_->{header}) {