Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Form][ButtonBuilder] Prevent buttons names from starting with a capital letter #34445

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

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Nov 18, 2019

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

Ping @xabbuh.
It was forbidden in #28969 but it does not throw in 5.0 as it should.
We cannot use FormConfigBuilder::validateName() in ButtonBuilder because this one allows first capital letters. We cannot change it because form names can start with capital letters (it is currently not deprecated in 4.4).
So we either also deprecate this (but why?) or we just validate button names in its own builder (proposed change in this PR).

@fancyweb fancyweb requested a review from xabbuh as a code owner November 18, 2019 21:48
@fancyweb fancyweb force-pushed the form-forbid-first-capital-letter branch 2 times, most recently from 8855026 to fe82230 Compare November 18, 2019 21:50
@fancyweb fancyweb force-pushed the form-forbid-first-capital-letter branch from fe82230 to 5c843ff Compare November 18, 2019 21:57
@fancyweb
Copy link
Contributor Author

Actually it was missing in #31705

@fancyweb fancyweb force-pushed the form-forbid-first-capital-letter branch from 8676a9d to 0eab1fd Compare November 18, 2019 23:05
@xabbuh
Copy link
Member

xabbuh commented Nov 19, 2019

Looking back in the history of changes it seems to me that was a mistake in #28969 to deprecate names starting with uppercase letters.

@fancyweb
Copy link
Contributor Author

fancyweb commented Nov 19, 2019

Not too late to remove this deprecation (as a bugfix I guess) and close this PR, isn'it? Better than continuing in error 😄

Just saw #34448. Closing here then 😄

@fancyweb fancyweb closed this Nov 19, 2019
@fancyweb fancyweb deleted the form-forbid-first-capital-letter branch November 19, 2019 08:14
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.

4 participants