Changeset 333 for trunk/grails-app/domain
- Timestamp:
- Apr 9, 2010, 11:02:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/TemplateEntity.groovy
r332 r333 263 263 else { 264 264 // Find the target template field, if not found, throw an error 265 TemplateField field = this.template.fields.find { it.name == fieldName }265 TemplateField field = this.template.fields.find { it.name == fieldName } 266 266 if (field == null) { 267 267 throw new NoSuchFieldException("Field ${fieldName} not found in class properties or template fields") … … 271 271 // Convenience setter for template string list fields: find TemplateFieldListItem by name 272 272 if (field.type == TemplateFieldType.STRINGLIST && value.class == String) { 273 value = field.listEntries.find { it.name == value}273 value = field.listEntries.find { it.name ==~ /(?i)($value)/ } 274 274 } 275 275
Note: See TracChangeset
for help on using the changeset viewer.