sonata-project/SonataAdminBundle — pull request #882 by ychadwick (2012-07-19 08:30:26+00:00)
Title: Fix content type return if xmlHttpRequest in retrieveFormFieldElementAction

- Ensure that a json response is returned, jQuery Form Plugin expects an xml, json or script response, an html response will not trigger the success callback function.

- Add ->renderer before setTheme and renderWidget due to change in Twig FormExtension