Ignore:
Timestamp:
Dec 15, 2010, 1:32:02 PM (9 years ago)
Author:
robert@…
Message:

Bugfix in importing templates (ticket #76)

File:
1 edited

Legend:

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

    r1257 r1270  
    474474                // Search for list entries
    475475                xmlObject.listItems?.listItem.each {
    476                         t.addToListEntries( new TemplateFieldListItem( name: it.name?.text() ) );
     476                        def name = ""
     477                        if( it.name )
     478                                name = it.name.text()
     479
     480                        t.addToListEntries( new TemplateFieldListItem( name: name ) );
    477481                }
    478482                return t;
Note: See TracChangeset for help on using the changeset viewer.