From 1c5a880353e47a8c4eb135f2a1a598cf7da81f23 Mon Sep 17 00:00:00 2001 From: Martin Hobson Date: Mon, 20 Nov 2017 20:25:02 -0500 Subject: [PATCH] Resolved: org.grails.web.converters.configuration.ConvertersConfigurationInitializer does not respect grails.converters.include.class settings for the "deep" configuration #2 --- .../configuration/ConvertersConfigurationInitializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java b/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java index d312b947642..c6441daf998 100644 --- a/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java +++ b/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java @@ -155,7 +155,7 @@ private Config getGrailsConfig() { private void initDeepJSONConfiguration() { DefaultConverterConfiguration deepConfig = new DefaultConverterConfiguration(ConvertersConfigurationHolder.getConverterConfiguration(JSON.class), getProxyHandler()); - deepConfig.registerObjectMarshaller(new org.grails.web.converters.marshaller.json.DeepDomainClassMarshaller(includeDomainVersionProperty(getGrailsConfig(), "json"), getProxyHandler(), grailsApplication)); + deepConfig.registerObjectMarshaller(new org.grails.web.converters.marshaller.json.DeepDomainClassMarshaller(includeDomainVersionProperty(getGrailsConfig(),"json"), includeDomainClassProperty(getGrailsConfig(), "json"), getProxyHandler(), grailsApplication)); ConvertersConfigurationHolder.setNamedConverterConfiguration(JSON.class, "deep", deepConfig); }