Changeset 1193


Ignore:
Timestamp:
Nov 23, 2010, 1:50:40 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • refresh error when calling savePostview now really shouldn't popup anymore
File:
1 edited

Legend:

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

    r1191 r1193  
    4242    def index = {
    4343        // no data has been imported yet
    44         session.validatedSuccesfully = null
     44        session.import_wizard_init = true
    4545
    4646        // should do a check what is in the url, strip it?
     
    337337     */
    338338    def savePostview = {
    339        
    340         if (session.validatedSuccesfully) {
     339        println session.import_wizard_init
     340
     341        // Called this page directly, then display an error message.
     342        if ( (!session?.import_wizard_init) ) {
    341343            render (template:"common/error",
    342344                    model:[error:"Data is already imported or you are calling the url directly without following the previous import steps."])
     
    344346            session.validatedSuccesfully = ImporterService.saveDatamatrix(session.importer_study, session.importer_importeddata)
    345347            render(view:"step4", model:[validatedSuccesfully:session.validatedSuccesfully, totalrows:session.importer_importeddata.size, referer: session.import_referer])
     348            session.import_wizard_init = false
    346349        }
    347350    }
Note: See TracChangeset for help on using the changeset viewer.