Changeset 807


Ignore:
Timestamp:
Aug 16, 2010, 10:38:35 AM (9 years ago)
Author:
duh
Message:
  • added some more comments
File:
1 edited

Legend:

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

    r805 r807  
    294294                        }.each() {
    295295                                // remove sample from study
     296
     297                                // -------
     298                                // NOTE, the right samples are found, but the don't
     299                                // get deleted from the database!
     300                                // -------
     301
    296302                                println ".removing sample "+it
     303                                msg += ", sample '${it.name}' was deleted"
    297304                                this.removeFromSamples( it )
    298305                        }
     
    300307
    301308                // remove all samplingEvents from this eventGroup
    302                 eventGroup.samplingEvents.findAll{}.each() { eventGroup.removeFromSamplingEvents(it) }
     309                eventGroup.samplingEvents.findAll{}.each() {
     310                        eventGroup.removeFromSamplingEvents(it)
     311                        msg += ", samplingEvent '${it.name}' was removed from eventGroup '${eventGroup.name}'"
     312                }
    303313
    304314                // remove all subject from this eventGroup
    305                 eventGroup.subjects.findAll{}.each() { eventGroup.removeFromSubjects(it) }
     315                eventGroup.subjects.findAll{}.each() {
     316                        eventGroup.removeFromSubjects(it)
     317                        msg += ", subject '${it.name}' was removed from eventGroup '${eventGroup.name}'"
     318                }
    306319
    307320                // remove the eventGroup from the study
Note: See TracChangeset for help on using the changeset viewer.