Index: grails-app/services/com/lemans/ds/attribute/AttributeService.groovy =================================================================== diff -u -r6e722331697ddf9d80dc86f602658f1e5be9a98c -rb6948ad46c9eda54c66fbdcd1d7112254edaac70 --- grails-app/services/com/lemans/ds/attribute/AttributeService.groovy (.../AttributeService.groovy) (revision 6e722331697ddf9d80dc86f602658f1e5be9a98c) +++ grails-app/services/com/lemans/ds/attribute/AttributeService.groovy (.../AttributeService.groovy) (revision b6948ad46c9eda54c66fbdcd1d7112254edaac70) @@ -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