Skip to content

Fix ChoiceType filter with multiple/expanded options #212

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

Closed
wants to merge 9 commits into from

Conversation

maciazek
Copy link

Hi @Kreyu

I made an attempt to fix #151 and ended up with this. Works okay for me at first glance, but it needs to be tested thoroughly. Of course if you don't like this kind of fix, feel free to close this PR, no problem. Or maybe you will have additional tips/ideas?

I also prepared a separate branch in my demo app (test/multiple-choices), where these changes can be tested. After checkout, run composer install and php bin/console app:reload-database.

If anyone would like to test this PR in their app, it can be done in the following way:

In the coming week I'll try to test it at my workplace. @j0r1s Could I ask you to test these changes in your environment?

@maciazek
Copy link
Author

Uh, now I see some more problems with this. I'll close this and get back when I find a better solution.

@maciazek maciazek closed this Apr 27, 2025
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.

Using a ChoiceType (or EnumType) with multiple / expanded set to true as a filter breaks URL generation
1 participant