Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Add missing row_attr option to FormType#33688
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
stof commentedSep 24, 2019
This should actually be added in BaseType, so that ButtonType also benefits from it, not only FormType. |
b7d6d9d tod711ea2Comparemcsky commentedSep 24, 2019
Good catch, PR updated |
fancyweb commentedSep 24, 2019
Noticed this while working on#33573. Didn't change it because I thought it was like this on purpose and it is justified for me to offer this feature only in the theme. But by looking at#30320, it's clear the initial idea was to add the form option as well. Not really a fan of adding another theming form option though. Also, if we had this one, why don't we add the others ? |
xabbuh commentedSep 25, 2019
Thank you@mcsky. |
This PR was merged into the 4.3 branch.Discussion----------Add missing row_attr option to FormType| Q | A| ------------- | ---| Branch? | 4.3| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets |Fix:#33682 - related issue#33573| License | MITThe#33573 modified Symfony's form themes. But the [FormType](https://github.com/symfony/form/blob/master/Extension/Core/Type/FormType.php) don't allow the option `row_attr` so the OptionResolver throw an exception that the option is unknown.This PR basically add the option and give it to the form view (like `label_attr` do)Commits-------d711ea2 Add missing row_attr option to FormType
The#33573 modified Symfony's form themes. But theFormType don't allow the option
row_attrso the OptionResolver throw an exception that the option is unknown.This PR basically add the option and give it to the form view (like
label_attrdo)