8000 [Form] Fixed read_only attribute for expanded fields by helmer · Pull Request #3258 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] Fixed read_only attribute for expanded fields #3258

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 2 commits into from
Feb 4, 2012

Conversation

helmer
Copy link
Contributor
@helmer helmer commented Feb 2, 2012

Expanded choice widgets lose the knowledge of read_only attribute value.

Fixes bug introduced by #3193

@helmer
Copy link
Contributor Author
helmer commented Feb 2, 2012

Please hold before merging, @bschussek had some thoughts about my changes in ChoiceType, waiting for feedback.

@webmozart
Copy link
Contributor

I'm fine with the refactoring then, but please split it into two commits at least. The changes in ChoiceType have nothing in common with the actual issue here.

@helmer
Copy link
Contributor Author
helmer commented Feb 2, 2012

Tests added.

@@ -150,6 +150,27 @@ public function testPassIdAndNameToViewWithGrandParent()
$this->assertEquals('parent[child][grand_child]', $view['child']['grand_child']->get('full_name'));
}

public function testReadOnlyInheritance()
Copy link
Contributor

Choose a reason for hiding this comment

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

You are testing three different cases, so please split them up into three different tests with appropiate names.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@webmozart
Copy link
Contributor

Great, thanks.

@fabpot 👍

fabpot added a commit that referenced this pull request Feb 4, 2012
Commits
-------

8321593 [Form] DRYed ChoiceType
0753cee [Form] Fixed read_only attribute for expanded fields

Discussion
----------

[Form] Fixed read_only attribute for expanded fields

Expanded choice widgets lose the knowledge of read_only attribute value.

Fixes bug introduced by #3193

---------------------------------------------------------------------------

by helmer at 2012-02-02T16:24:50Z

Please hold before merging, @bschussek had some thoughts about my changes in ``ChoiceType``, waiting for feedback.

---------------------------------------------------------------------------

by bschussek at 2012-02-02T16:33:12Z

I'm fine with the refactoring then, but please split it into two commits at least. The changes in ChoiceType have nothing in common with the actual issue here.

---------------------------------------------------------------------------

by helmer at 2012-02-02T19:40:39Z

Tests added.

---------------------------------------------------------------------------

by bschussek at 2012-02-03T10:14:32Z

Great, thanks.

@fabpot 👍
@fabpot fabpot merged commit 8321593 into symfony:master Feb 4, 2012
vicb added a commit to vicb/symfony that referenced this pull request Apr 27, 2012
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.

3 participants
0