Skip to content

[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

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

xabbuh
Copy link
Member

@xabbuh 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']) {
Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #28508

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit c4a6c9f into symfony:4.1 Sep 18, 2018
nicolas-grekas added a commit that referenced this pull request Sep 18, 2018
… 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
@xabbuh xabbuh deleted the issue-28198 branch September 18, 2018 13:11
xabbuh added a commit to xabbuh/symfony that referenced this pull request Sep 19, 2018
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.
nicolas-grekas added a commit that referenced this pull request Sep 20, 2018
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
symfony-splitter pushed a commit to symfony/form that referenced this pull request Sep 20, 2018
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
@fabpot fabpot mentioned this pull request Sep 30, 2018
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