Changeset 1066


Ignore:
Timestamp:
Nov 3, 2010, 5:31:57 PM (6 years ago)
Author:
j.a.m.wesbeek@…
Message:
  • initialize flash.errors in loadStudy logic
File:
1 edited

Legend:

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

    r1034 r1066  
    855855         */
    856856        def loadStudy(flow, flash, params) {
     857                flash.errors = new LinkedHashMap()
     858               
    857859                // load study
    858860                try {
     
    875877                } catch (Exception e) {
    876878                        // rollback
    877                         this.appendErrorMap(['exception': e.toString() + ', see log for stacktrace'], flash.errors)
     879                        this.appendErrorMap(['exception': e.getMessage() + ', see log for stacktrace'], flash.errors)
    878880
    879881                        return false
Note: See TracChangeset for help on using the changeset viewer.