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/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