Ignore:
Timestamp:
Jan 28, 2011, 12:00:37 PM (6 years ago)
Author:
robert@…
Message:

Saving new entity tokens needed a flush to work properly

File:
1 edited

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               
Note: See TracChangeset for help on using the changeset viewer.