Changeset 1538


Ignore:
Timestamp:
Feb 17, 2011, 5:28:06 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • fixed small "existing*" bug/feature with an extra check, so after a refresh the uploaded filename stays correct
File:
1 edited

Legend:

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

    r1536 r1538  
    111111                        }
    112112
    113             on("refresh") {
    114                 println params.importfile
     113            on("refresh") {               
    115114
    116115                if (params.entity) {
     
    118117                }
    119118               
    120                 flash.importer_params = params
     119                flash.importer_params = params               
     120
     121                // If the file already exists an "existing*" string is added, but we don't
     122                // want that after a refresh of the first step in the import wizard, so remove
     123                // that string
     124                flash.importer_params.importfile = params.importfile.replace('existing*', '')
    121125
    122126                                success()
Note: See TracChangeset for help on using the changeset viewer.