Ignore:
Timestamp:
Mar 22, 2010, 1:44:00 PM (10 years ago)
Author:
duh
Message:
  • refactored template field handeling in the wizard
  • added escapedName() method to TemplateField? which returns the field name in lowercase format, and all non-alphanumeric characters escaped to underscores (hence: jeroen_s_very_cool_field)
  • (re)moved some template 'note' boxes
File:
1 edited

Legend:

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

    r290 r296  
    6464                        case TemplateFieldType.ONTOLOGYTERM:
    6565                                return templateTermFields
    66                         default:
     66                    default:
    6767                                throw new NoSuchFieldException("Field type ${fieldType} not recognized")
    6868                }
     
    139139        }
    140140
    141 
    142 
    143141        def Set<TemplateField> giveFields() {
    144142                return this.template.fields;
     
    173171        }
    174172
     173        def validate() {
     174                return super.validate()
     175        }
    175176}
Note: See TracChangeset for help on using the changeset viewer.