Skip to content
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

[Form] Added check for parent disabled status in Button form elements #10110

Conversation

adlpz
Copy link
Contributor

@adlpz adlpz commented Jan 22, 2014

Q A
Bug fix? yes
New feature? no
BC breaks? unclear
Deprecations? no
Tests pass? yes
Fixed tickets #10109
License MIT
Doc PR -

The Button form element did not check for the parent disabled configuration status,
making them behave differently to all other form widgets.

This is specially visible in the situation of a top-level Form element being Disabled, which would disable all children widgets except the Buttons (and Submit buttons).

This patch simply ports the code from the base Form.php method in order to make the behaviour exactly the same.

Further action would include

  • Document the possible Backward Compatibility issues

The Button form element did not check for the parent disabled configuration status,
making them behave differently to all other form widgets.
@yakobe
Copy link
Contributor

yakobe commented Jan 22, 2014

Would be great if this could be merged...

@marcinkleczek
Copy link

@yakobe I agree.

@webmozart
Copy link
Contributor

Thanks for that PR! I added a test case in #10591.

@webmozart webmozart closed this Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants