Ignore:
Timestamp:
Jul 19, 2010, 4:10:09 PM (11 years ago)
Author:
tabma
Message:
  • fixed property assignment by using lookup from new entity object method getFieldType
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r660 r661  
    212212
    213213        // Find actual Template object from the chosen template name
    214         def template = Template.get(session.imported_template_id)
     214        def template = Template.get(session.importer_template_id)
    215215
    216216        params.columnproperty.index.each { columnindex, property ->
     
    224224                session.importer_header[columnindex.toInteger()].property = property
    225225                // Look up the template field type of the target TemplateField and store it also in the map
    226                 session.importer_header[columnindex.toInteger()].templatefieldtype = entityObj.giveFields()[property].type
     226                session.importer_header[columnindex.toInteger()].templatefieldtype = entityObj.getFieldType(property)
    227227
    228228                //if it's an identifier set the mapping column true or false
Note: See TracChangeset for help on using the changeset viewer.