-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] - unknown option row_attr #33682
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
Comments
it looks like the PR trying to add this option was incomplete. |
@javiereguiluz the issue is not only form themes. |
It seems that the option I'm currently working on a PR, some tests are failing for the moment. |
@javiereguiluz or @stof PR opened ready for review 👍 |
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 | MIT The #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
Symfony version(s) affected: 4.3.4
Description
It seems that form field has the new option row_attr. But I’m trying to use it (my version is 4.3.4 for all Sf dependencies) but I get the form error unknown option error.
How to reproduce
Use the
row_attr
optionPossible Solution
I fixed it by modifying the FormType class and add the option like done for
label_attr
for example.Do I'm missing something?
I can submit a PR, if this is a real issue
The text was updated successfully, but these errors were encountered: