Changeset 9368


Ignore:
Timestamp:
20 Oct 2012, 15:19:30 (12 years ago)
Author:
Henrik Bettermann
Message:

Emergency fix: If the import file contains only one column the import_headerfields attribute is a string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r9334 r9368  
    13441344        self.mode = session.get('import_mode', None)
    13451345        self.importername = session.get('import_importer', None)
    1346         self.headerfields = session.get('import_headerfields', None)
     1346        # If the import file contains only one column
     1347        # the import_headerfields attribute is a string.
     1348        self.headerfields = []
     1349        self.headerfields.append(session.get('import_headerfields', None))
    13471350
    13481351        if None in (self.filename, self.mode, self.importername,
Note: See TracChangeset for help on using the changeset viewer.