Ignore:
Timestamp:
Jun 7, 2010, 9:20:00 AM (13 years ago)
Author:
roberth
Message:

Samples are now shown in the study overview page. Also some tests are added and the bootstrap is updated to show some sample fields with a template

File:
1 edited

Legend:

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

    r506 r536  
    8484        }
    8585
     86        def belongsToGroup( Set<EventGroup> groups ){
     87            def eventFound = false;
     88            def that = this;
     89            groups.each{ eventgroup ->
     90                if( !eventFound ) {
     91                    eventFound = ( that.id in eventgroup.events.id );
     92                }
     93            }
     94
     95            return eventFound;
     96        }
     97
    8698        def String toString() {
    8799                return fieldExists('Description') ? getFieldValue('Description') : ""
Note: See TracChangeset for help on using the changeset viewer.