Ignore:
Timestamp:
Apr 26, 2010, 3:50:22 PM (9 years ago)
Author:
duh
Message:
  • null bugfix
  • improved template field handling
File:
1 edited

Legend:

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

    r375 r381  
    302302                                // Set the value of the found template field
    303303                                // Convenience setter for template string list fields: find TemplateFieldListItem by name
    304                                 if (field.type == TemplateFieldType.STRINGLIST && value.class == String) {
     304                                if (field.type == TemplateFieldType.STRINGLIST && value && value.class == String) {
    305305                                        // Kees insensitive pattern matching ;)
    306306                                        value = field.listEntries.find { it.name ==~ /(?i)($value)/ }
Note: See TracChangeset for help on using the changeset viewer.