Changeset 674


Ignore:
Timestamp:
Jul 21, 2010, 10:45:42 AM (13 years ago)
Author:
duh
Message:
  • temporarily disabled samples logic in controler for non-development environments
File:
1 edited

Legend:

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

    r673 r674  
    659659                                flow.page = 6
    660660
     661// for now, development only!
     662if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT) {
    661663                                // iterate through eventGroups
    662664                                if (!flow.samples) {
     
    702704                                        }
    703705                                }
     706}
    704707
    705708                                success()
     
    754757                                flash.errors = [:]
    755758
     759// for now, development only!
     760if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT) {
    756761                                // do all samples have a template assigned?
    757762                                if (flow.samplesWithTemplate < flow.samples.size()) {
     
    771776                                        error()
    772777                                }
     778} else {
     779        success()
     780}
    773781                        }.to "confirm"
    774782                        on("quickSave") {
Note: See TracChangeset for help on using the changeset viewer.