Changeset 278
- Timestamp:
- Mar 17, 2010, 2:29:09 PM (13 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/DataSource.groovy
r277 r278 34 34 dbCreate = "create-drop" // one of 'create', 'create-drop','update' 35 35 url = "jdbc:hsqldb:mem:devDB" 36 loggingSql = true36 //loggingSql = true 37 37 break; 38 38 } -
trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy
r275 r278 448 448 // save EventDescriptions 449 449 flow.eventDescriptions.each() { 450 if (!it. validate() || !it.save()) {450 if (!it.save(flush:true)) { 451 451 this.appendErrors(it, flash.errors) 452 452 throw new Exception('error saving eventDescription') … … 457 457 // save events 458 458 flow.events.each() { 459 if (!it. validate() || !it.save()) {459 if (!it.save(flush:true)) { 460 460 this.appendErrors(it, flash.errors) 461 461 throw new Exception('error saving event') … … 473 473 // save eventGroups 474 474 flow.eventGroups.each() { 475 if (!it. validate() || !it.save()) {475 if (!it.save(flush:true)) { 476 476 this.appendErrors(it, flash.errors) 477 477 throw new Exception('error saving eventGroup') … … 485 485 // save subjects 486 486 flow.subjects.each() { 487 if (!it. validate() || !it.save()) {487 if (!it.save(flush:true)) { 488 488 this.appendErrors(it, flash.errors) 489 489 throw new Exception('error saving subject') … … 496 496 497 497 // save study 498 if (!flow.study. validate() || !flow.study.save()) {498 if (!flow.study.save(flush:true)) { 499 499 this.appendErrors(flow.study, flash.errors) 500 500 throw new Exception('error saving study')
Note: See TracChangeset
for help on using the changeset viewer.