-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
[Autocomplete] Use choice_value
in the WrappedEntityTypeAutocompleter
in EntityAutocompleteField
#1723
Conversation
4b7e2f4
to
95a11f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakubtobiasz, thanks for this PR! Do you think this could be considered a bug fix?
Hi @kbond,
The
part convinces me that might be categorized as a bugfix. We were pretty surprised it doesn't work that way :D. I've updated the description, the question is whether there should be a |
Me too! Anyway, it's just semantics and I really just wanted to clarify that this "felt like the intended use" which you have done. The next version will be 2.17.0 so no worries about the changelog. |
src/Autocomplete/CHANGELOG.md
Outdated
@@ -1,5 +1,9 @@ | |||
# CHANGELOG | |||
|
|||
## 2.17.0 | |||
|
|||
- Allow defining custom values for the autocomplete results with using `choice_value` option in entity autocomplete fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Allow defining custom values for the autocomplete results with using `choice_value` option in entity autocomplete fields | |
- Allow `choice_value` option in entity autocomplete fields #1723 |
(just a suggestion)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jakubtobiasz !
…ter` in `EntityAutocompleteField`
95a11f2
to
f63ff7d
Compare
Thank you Jacob. |
this was a duplicate of #1328 |
Currently despite setting the
choice_value
the\Symfony\UX\Autocomplete\Form\WrappedEntityTypeAutocompleter
uses the id value of the entity. This PR allows to override the autocomplete result value in the entity autocomplete fields.