-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form][TwigBridge] fix not displaying labels when value is false #28469
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
Conversation
xabbuh
commented
Sep 14, 2018
Q | A |
---|---|
Branch? | 4.1 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #28198 |
License | MIT |
Doc PR |
@@ -133,6 +133,11 @@ public function buildForm(FormBuilderInterface $builder, array $options) | |||
'invalid_message_parameters', | |||
))); | |||
|
|||
if (false === $options['label']) { |
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.
This change technically could go into the 2.8
branch too. Though it would only fix custom form themes there. Our built-in form themes do not suffer from this issue in older branches.
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.
see #28508
Thank you @xabbuh. |
… false (xabbuh) This PR was merged into the 4.1 branch. Discussion ---------- [Form][TwigBridge] fix not displaying labels when value is false | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28198 | License | MIT | Doc PR | Commits ------- c4a6c9f fix not displaying labels when value is false
This change does not fix any built-in Symfony form themes, but takes into account the changes made in symfony#28469 to allow third-party form themes work properly.
This PR was merged into the 2.8 branch. Discussion ---------- [Form] forward false label option to nested types | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28469 (comment) | License | MIT | Doc PR | This change does not fix any built-in Symfony form themes, but takes into account the changes made in #28469 to allow third-party form themes work properly. Commits ------- 3247cde forward false label option to nested types
This PR was merged into the 2.8 branch. Discussion ---------- [Form] forward false label option to nested types | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony#28469 (comment) | License | MIT | Doc PR | This change does not fix any built-in Symfony form themes, but takes into account the changes made in #28469 to allow third-party form themes work properly. Commits ------- 3247cdeea9 forward false label option to nested types