Changeset 572


Ignore:
Timestamp:
Jun 16, 2010, 3:45:49 PM (7 years ago)
Author:
keesvb
Message:

fixed bugs #111 and #112

Location:
trunk/grails-app
Files:
3 edited

Legend:

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

    r564 r572  
    9191        }
    9292
    93         def belongsToGroup(Set<EventGroup> groups) {
     93        def belongsToGroup(Collection<EventGroup> groups) {
    9494                def eventFound = false;
    9595                def that = this;
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy

    r564 r572  
    635635         * a template, also an empty set is returned.
    636636         */
    637         static Set<Template> giveTemplates(Set<TemplateEntity> entityCollection) {
     637        static Collection<Template> giveTemplates(Collection<TemplateEntity> entityCollection) {
    638638                def set = entityCollection*.template.unique();
    639639
     
    648648         * @return The template used by all members of a collection
    649649         */
    650         static Template giveSingleTemplate(Set<TemplateEntity> entityCollection) {
     650        static Template giveSingleTemplate(Collection<TemplateEntity> entityCollection) {
    651651                def templates = giveTemplates(entityCollection);
    652652                if (templates.size() == 0) {
  • trunk/grails-app/views/study/show.gsp

    r536 r572  
    507507              // so the list is filtered for unique values
    508508              groupTemplates = studyList*.giveAllEventTemplates().flatten().unique()
    509               subjectFields = subjectTemplates*.fields.flatten().unique()
    510509            %>
    511510            <table>
Note: See TracChangeset for help on using the changeset viewer.