Changeset 1272
- Timestamp:
- Dec 15, 2010, 1:44:27 PM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/TemplateController.groovy
r1270 r1272 79 79 templates << templateData 80 80 } catch (Exception e) { 81 templates << [ template: null, error: "Template " + ( template.name ?: " without name" ) + " could not be parsed: " + e ];81 templates << [ template: null, error: "Template " + ( template.name ?: " without name" ) + " could not be parsed: " + e + " (" + e. getStackTrace()[ 0 ] + ")" ]; 82 82 } 83 83 } -
trunk/grails-app/domain/dbnp/studycapturing/Template.groovy
r1269 r1272 301 301 // template fields with the same name, in order to have as little comparisons 302 302 // as possible 303 for( def otherField in TemplateField.findAllByName( field .name ) ) {303 for( def otherField in TemplateField.findAllByName( field?.name ) ) { 304 304 if( field.contentEquals( otherField ) ) { 305 305 field = otherField; -
trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy
r1271 r1272 475 475 xmlObject.listItems?.listItem.each { 476 476 def name = "" 477 if( it && it.name )477 if( it != null && it.name ) 478 478 name = it.name.text() 479 479
Note: See TracChangeset
for help on using the changeset viewer.