Changeset 933


Ignore:
Timestamp:
Oct 7, 2010, 1:08:20 PM (6 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 edited

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                        }
Note: See TracChangeset for help on using the changeset viewer.