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