Skip to content

#1770 [Autocomplete] Ignore the ExtraLazyChoiceLoader if the parent $loader is null #1775

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

Merged

Conversation

vesselind
Copy link
Contributor

Q A
Bug fix? yes/no
New feature? no
Issues Fix #1770
License MIT

When a custom autoload field class is created and choices option is passed, an error occurs: Symfony\UX\Autocomplete\Form\ChoiceList\Loader\ExtraLazyChoiceLoader::__construct(): Argument #1 ($decorated) must be of type Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface, null given.

This should fix the problem, described in #1770.

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Apr 24, 2024
@kbond
Copy link
Member

kbond commented Apr 24, 2024

Thanks for the bug report and fix @vesselind!

@kbond kbond merged commit 25278fd into symfony:2.x Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Review Needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Autocomplete] AJAX Autocomplete not working after upgrade to v.2.17 - ExtraLazyChoiceLoader problem
3 participants