Changeset 1656


Ignore:
Timestamp:
Mar 22, 2011, 9:56:05 AM (6 years ago)
Author:
t.w.abma@…
Message:
  • added 'hack' to fix the file upload via Ajax by stripping HTML from the 'importfile' parameter
File:
1 edited

Legend:

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

    r1655 r1656  
    123123                                // that string
    124124                                flash.importer_params.importfile = params.importfile.replace('existing*', '')
     125                flash.importer_params.importfile = new XmlSlurper().parseText(flash.importer_params.importfile[flash.importer_params.importfile.indexOf('<pre')..-1]).toString()
    125126
    126127                                success()
     
    131132                                flash.importer_params = params
    132133                                flash.importer_params.importfile = params.importfile.replace('existing*', '')
     134                flash.importer_params.importfile = new XmlSlurper().parseText(flash.importer_params.importfile[flash.importer_params.importfile.indexOf('<pre')..-1]).toString()
    133135
    134136                                if (params.entity) {
Note: See TracChangeset for help on using the changeset viewer.