Show
Ignore:
Timestamp:
28-01-11 12:00:37 (3 years ago)
Author:
robert@…
Message:

Saving new entity tokens needed a flush to work properly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy

    r1452 r1454  
    8080                if( !this.assayUUID ) { 
    8181                        this.assayUUID = UUID.randomUUID().toString(); 
    82                         this.save(); 
     82                        if( !this.save(flush:true) ) { 
     83                                log.error "Couldn't save assay UUID: " + this.getErrors(); 
     84                        } 
    8385                } 
    8486