Ignore:
Timestamp:
Dec 15, 2010, 1:20:43 PM (10 years ago)
Author:
robert@…
Message:

Fixed bug in importing templates without any fields and improved views (ticket #76)

File:
1 edited

Legend:

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

    r1264 r1269  
    141141
    142142                // Check all template fields
    143                 if( otherTemplate.fields?.size() != this.fields?.size() )
     143                def size1 = otherTemplate.fields?.size() ?: 0
     144                def size2 = otherTemplate.fields?.size() ?: 0
     145                if( size1 != size2 ) {
    144146                        return false
     147                }
    145148
    146149                if( otherTemplate.fields != null && this.fields != null ) {
Note: See TracChangeset for help on using the changeset viewer.