Index: grails-app/services/com/lemans/ds/attribute/AttributeService.groovy =================================================================== diff -u -r6589f245faeca98e17097593b8a40e8225ebeda9 -r1cb43b5a3e7fd3888457d80d0bc19c493d89eba4 --- grails-app/services/com/lemans/ds/attribute/AttributeService.groovy (.../AttributeService.groovy) (revision 6589f245faeca98e17097593b8a40e8225ebeda9) +++ grails-app/services/com/lemans/ds/attribute/AttributeService.groovy (.../AttributeService.groovy) (revision 1cb43b5a3e7fd3888457d80d0bc19c493d89eba4) @@ -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 : slurper.parseText(it.attributes.toString()).attributes + it[criteria.groupingAttrName] = it.attributes instanceof Clob ? slurper.parseText(XML.toJSONArray(it.attributes.characterStream.text).toString()).attributes : slurper.parseText(XML.toJSONArray(it.attributes).toString()).attributes it.remove('attributes') } data