[Autocomplete] Fix Incompatibility filter_query and max_results (doc)#2440
Conversation
|
It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you. Cheers! Carsonbot |
| ``filter_query`` (default: ``null``) | ||
| If you want to completely control the query made for the "search results", | ||
| use this option. This is incompatible with ``searchable_fields``:: | ||
| use this option. This is incompatible with ``searchable_fields`` and ``max_results``:: |
There was a problem hiding this comment.
Nice catch here!
Would you also update the BaseAutocompleteType code to make the same check than filter/searcheable_fields ?
ux/src/Autocomplete/src/Form/BaseEntityAutocompleteType.php
Lines 68 to 75 in eab7db5
There was a problem hiding this comment.
Can be a problem because max_results has default to 10.
There was a problem hiding this comment.
Well let's forget then :) Thanks for the fix!
|
Thank you @ytilotti. |
Fix in the documentation the incompatibility between filter_query and max_results.