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/Study.groovy

    r1452 r1454  
    517517                if( !this.studyUUID ) {
    518518                        this.studyUUID = UUID.randomUUID().toString();
    519                         this.save();
     519                        if( !this.save(flush:true) ) {
     520                                log.error "Couldn't save study UUID: " + this.getErrors();
     521                        }
    520522                }
    521523               
Note: See TracChangeset for help on using the changeset viewer.