Index: grails-app/services/com/lemans/ds/attribute/AttributeService.groovy =================================================================== diff -u -r757a0e89edba66b0b27b69a4ce307b81de827028 -r6589f245faeca98e17097593b8a40e8225ebeda9 --- grails-app/services/com/lemans/ds/attribute/AttributeService.groovy (.../AttributeService.groovy) (revision 757a0e89edba66b0b27b69a4ce307b81de827028) +++ grails-app/services/com/lemans/ds/attribute/AttributeService.groovy (.../AttributeService.groovy) (revision 6589f245faeca98e17097593b8a40e8225ebeda9) @@ -68,7 +68,7 @@ private Map addGroupingAttr(Map criteria, Map data) { JsonSlurper slurper = new JsonSlurper() data.results.each { - it[criteria.groupingAttrName] = it.attributes instanceof Clob ? slurper.parseText(XML.toJSONArray(it.attributes.characterStream.text).toString()).attributes : it.attributes + it[criteria.groupingAttrName] = it.attributes instanceof Clob ? slurper.parseText(XML.toJSONArray(it.attributes.characterStream.text).toString()).attributes : slurper.parseText(it.attributes.toString()).attributes it.remove('attributes') } data