Fix grid TSV export bug

This commit is contained in:
abastardi
2017-09-14 18:49:31 -04:00
parent 087280ec17
commit a605e43fa6
+3 -1
View File
@@ -3570,7 +3570,9 @@ class ExportClass(object):
if not self.rows.db._adapter.REGEX_TABLE_DOT_FIELD.match(col):
row.append(record._extra[col])
else:
(t, f) = col.split('.')
# The grid code modifies rows.colnames, adding double quotes
# around the table and field names -- so they must be removed here.
(t, f) = [name.strip('"') for name in col.split('.')]
field = self.rows.db[t][f]
if isinstance(record.get(t, None), (Row, dict)):
value = record[t][f]