Ignore:
Timestamp:
Jul 19, 2010, 4:10:09 PM (13 years ago)
Author:
tabma
Message:
  • fixed property assignment by using lookup from new entity object method getFieldType
File:
1 edited

Legend:

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

    r572 r661  
    658658                }
    659659        }
     660
     661                    /**
     662         * Look up the type of a certain template subject field
     663         * @param String fieldName The name of the template field
     664         * @return String       The type (static member of TemplateFieldType) of the field, or null of the field does not exist
     665         */
     666        def TemplateFieldType getFieldType(String fieldName) {
     667                def field = this.giveFields().find {
     668                        it.name == fieldName
     669                }
     670                field?.type
     671        }
    660672}
Note: See TracChangeset for help on using the changeset viewer.