Skip to content

[2.7][Form] Patch label_attr in choice_attr. Fix #14404, #14165, #14393 #14405

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

Closed
wants to merge 6 commits into from

Conversation

HeahDude
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no (yes in BridgeTwig/Tests)
Fixed tickets #14404, #14165 , #14393
License MIT
Doc PR -

@HeahDude HeahDude changed the title [2.7][Form] Patch label_attr in choice_attr. Fix #14404 and maybe #14050, #14393 [2.7][Form] Patch label_attr in choice_attr. Fix #14404 and maybe #14165, #14393 Apr 19, 2015
@HeahDude HeahDude changed the title [2.7][Form] Patch label_attr in choice_attr. Fix #14404 and maybe #14165, #14393 [2.7][Form] Patch label_attr in choice_attr. Fix #14404, #14165, #14393 Apr 19, 2015
@@ -6,3 +6,4 @@ package*.tar
packages.json
phpunit.xml
/vendor/
/.idea
Copy link
Contributor

Choose a reason for hiding this comment

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

this belongs into your own global ignore

// Resolve label_attr to the right level
if (isset($choiceOpts['attr']['label_attr'])) {
$choiceOpts['label_attr'] = $choiceOpts['attr']['label_attr'];
unset($choiceOpts['attr']['label_attr']);
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not the correct thing. the attr is for html attributes. but label_attr doesn't exist as html attr.
To support your use-case, we would need to add another option: choice_label_attr with the same logic as the other choice options.

@HeahDude HeahDude closed this Apr 19, 2015
@HeahDude HeahDude deleted the fix-14404 branch December 4, 2015 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants