Changeset 933

Show
Ignore:
Timestamp:
07-10-10 13:08:20 (4 years ago)
Author:
business@…
Message:

fixed a bug in the belongsToGroup functions in Event and SamplingEvent?

Location:
trunk/grails-app/domain/dbnp/studycapturing
Files:
2 modified

Legend:

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

    r900 r933  
    113113                def that = this; 
    114114                groups.each { eventgroup -> 
    115                         if (!eventFound) { 
     115                        if (!eventFound && eventgroup.events) { 
    116116                                eventFound = (that.id in eventgroup.events.id); 
    117117                        } 
  • trunk/grails-app/domain/dbnp/studycapturing/SamplingEvent.groovy

    r878 r933  
    7979                def that = this; 
    8080                groups.each { eventgroup -> 
    81                         if (!eventFound) { 
     81                        if (!eventFound && eventgroup.samplingEvents) { 
    8282                                eventFound = (that.id in eventgroup.samplingEvents.id); 
    8383                        }