Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AbstractCrudController.php autocomplete to process fields #6807

Open
wants to merge 4 commits into
base: 4.x
Choose a base branch
from

Conversation

wizhippo
Copy link
Contributor

@wizhippo wizhippo commented Feb 7, 2025

Currently the autocomplete does not process fields, if you have a FieldConfigurator that modifies a custom option like AssociationField::OPTION_QUERY_BUILDER_CALLABLE it is not applied.

Currently the autocomplete does not process fields, if you have a FieldConfigurator that modifies a custom option like AssociationField::OPTION_QUERY_BUILDER_CALLABLE it is not applied.
@zorn-v
Copy link
Contributor

zorn-v commented Feb 7, 2025

Check #6788

@wizhippo
Copy link
Contributor Author

wizhippo commented Feb 8, 2025

Check #6788

Similiar but not the same. The issue here is that the AbstractCrudController::autocomplete action does not apply any of the field configurators like the index does, so anything defined in a configurator will not be applied to the field. In my example the queybuilder, but it could apply to anything set on the filed in a configurator.

@zorn-v
Copy link
Contributor

zorn-v commented Feb 9, 2025

Got it. You talk about setting this option in configurator, but not directly on field in configureFields

get the entity from the origination page
fix phpstan formating
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants