Ignore:
Timestamp:
Aug 17, 2010, 2:42:54 PM (10 years ago)
Author:
keesvb
Message:

fixed deleting of event groups, they now also cascade to samples in the event group

File:
1 edited

Legend:

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

    r813 r817  
    318318                                        msg += ", sample '${it.name}' was deleted"
    319319                                        this.removeFromSamples( it )
     320                                        // Also here, contrary to documentation, an extra delete() is needed
     321                                        it.delete()
    320322                                }
    321323                        }
     
    342344                println ".remove eventGroup '${eventGroup.name}' from study '${this.title}'"
    343345                this.removeFromEventGroups(eventGroup)
     346                // Also here, contrary to documentation, an extra delete() is needed
     347                eventGroup.delete()
    344348
    345349                return msg
Note: See TracChangeset for help on using the changeset viewer.