Ignore:
Timestamp:
Aug 17, 2010, 3:37:15 PM (10 years ago)
Author:
duh
Message:
  • removed test code from wizard
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        88[:]
        99.settings
         10.skip-studies
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r817 r819  
    249249                // This should remove the event group itself too, because of the cascading belongsTo relation
    250250                this.removeFromSamplingEvents(samplingEvent)
     251
    251252                // But apparently it needs an explicit delete() too
    252253                // (Which can be verified by outcommenting this line, then SampleTests.testDeleteViaParentSamplingEvent fails
     
    262263         */
    263264        String deleteEventGroup(EventGroup eventGroup) {
    264                 // TODO THIS DOESNT WORK!!!!
    265                 println "-"
    266                 println "-"
    267                 println "-"
    268                 println "-"
    269                 println "-"
    270                 println "REMOVING AN EVENTGROUP DOES NOT DELETE SAMPLES"
    271                 println "-"
    272                 println "-"
    273                 println "-"
    274                 println "-"
    275                 println "-"
    276 
    277 
    278 
    279265                String msg = "EventGroup ${eventGroup} was deleted"
    280266
     
    318304                                        msg += ", sample '${it.name}' was deleted"
    319305                                        this.removeFromSamples( it )
     306
    320307                                        // Also here, contrary to documentation, an extra delete() is needed
     308                                        // otherwise date is not properly deleted!
    321309                                        it.delete()
    322310                                }
     
    344332                println ".remove eventGroup '${eventGroup.name}' from study '${this.title}'"
    345333                this.removeFromEventGroups(eventGroup)
     334
    346335                // Also here, contrary to documentation, an extra delete() is needed
     336                // otherwise cascaded deletes are not properly performed
    347337                eventGroup.delete()
    348338
Note: See TracChangeset for help on using the changeset viewer.