sonata-project/SonataAdminBundle — pull request #2311 by caponica (2014-08-17 16:36:59+00:00)
Title: Autocomplete custom data function

This update allows the user to customise what data is sent in the AJAX call, enabling (for example) sending back data from other fields on the form. It follows on from the (minor) changes in #2305, which are included in this PR (they affect lines 37-39 of ModelAutocompleteType.php).

Added new `custom_data_function_block` option in ModelAutocompleteType
Added new `dropdown_auto_width` option in ModelAutocompleteType
Added related getDefaultOptions test and documentation
Updated form_admin_fields.html.twig to render effects of new options