Skip to content

[Form] Allowing plural message on extra data validation failure #34984

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
merged 1 commit into from
Mar 24, 2020

Conversation

popnikos
Copy link
Contributor

@popnikos popnikos commented Dec 15, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
License MIT
Doc PR -

When using allow_extra_fields feature (and set to false) with an extra_fields_message, this message may now support pluralization regarding count of extra fields (extra data). e.g. "extra field found|extra fields found"

@popnikos popnikos requested a review from xabbuh as a code owner December 15, 2019 14:46
@nicolas-grekas nicolas-grekas changed the title Allowing plural message on extra data validation failure [Form] Allowing plural message on extra data validation failure Dec 15, 2019
@nicolas-grekas
Copy link
Member

Could you please fill in the PR template in the description? If this is a bug, the PR should target the lowest branch where the bung is found (see PR description templates for details). A test case would be nice also. Thanks.

@popnikos
Copy link
Contributor Author

I will add tests in the next few days

@fabpot
Copy link
Member

fabpot commented Jan 10, 2020

@popnikos Do you have time to add some tests?

@popnikos
Copy link
Contributor Author

popnikos commented Jan 10, 2020 via email

@popnikos
Copy link
Contributor Author

@xabbuh I met some difficulties with my github to modify my branch and have wrongly done modification on my master (popnikos/symfony github repo) and just use a merge master into my patch-1 branch (the one attached to this PR)

Could you please validate it anyway (because dthe fabbot.io consider this as an issue)?

When using allow_extra_fields feature (and set to false) with an extra_fields_message, this message may now support pluralization regarding count of extra fields (extra data). e.g. "extra field found|extra fields found"
@fabpot
Copy link
Member

fabpot commented Mar 24, 2020

Thank you @popnikos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants