Changeset 736


Ignore:
Timestamp:
Jul 27, 2010, 4:37:28 PM (10 years ago)
Author:
duh
Message:
  • sampling events were not properly deleted from study
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy

    r731 r736  
    508508                                if (flow.events[ delete ] && flow.events[ delete ] instanceof Event) {
    509509                                        // remove it from the study
    510                                         flow.study.removeFromEvents( flow.events[ delete ] )
     510                                        if ( flow.events[ delete ] instanceof SamplingEvent ) {
     511                                                flow.study.removeFromSamplingEvents( flow.events[ delete ] )
     512                                        } else {
     513                                                flow.study.removeFromEvents( flow.events[ delete ] )
     514                                        }
    511515
    512516                                        // remove it from the map
Note: See TracChangeset for help on using the changeset viewer.