Ignore:
Timestamp:
Apr 15, 2010, 1:16:10 PM (14 years ago)
Author:
duh
Message:
  • small bugfix for modify study page (unset flow.study after cancel)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy

    r341 r343  
    8888                                flash.cancel = true
    8989                        }
    90                         on("cancel").to "start"
     90                        on("cancel") {
     91                                flow.study = null
     92                        }.to "start"
    9193                        on("next") {
    9294                                // TODO: loading a study is not yet implemented
     
    119121                                flash.errors = [:]
    120122
    121                                 if (this.handleStudy(flow, flash, params)) {
    122                                         success()
    123                                 } else {
    124                                         error()
    125                                 }
     123                                // handle the study
     124                                this.handleStudy(flow, flash, params)
     125
     126                                // reset errors
     127                                flash.errors = [:]
     128
     129                                success()
    126130                        }.to "start"
    127131                        on("next") {
Note: See TracChangeset for help on using the changeset viewer.