Skip to content

[Form] Added exception when setAutoInitialize() is called when locked #15682

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 1 commit into from
Closed

[Form] Added exception when setAutoInitialize() is called when locked #15682

wants to merge 1 commit into from

Conversation

jaytaph
Copy link
Contributor

@jaytaph jaytaph commented Sep 3, 2015

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

It seems that this method was missing a "locked" check, since it changes state and a locked instance should be immutable. However, because setAutoInitialize() is useful during the building of a form, it doesn't really matter a lot whether or not it is changed. But for consistency, it would be nicer if this method too was checked.

@fabpot
Copy link
Member

fabpot commented Sep 26, 2015

Thank you @jaytaph.

fabpot added a commit that referenced this pull request Sep 26, 2015
…when locked (jaytaph)

This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #15682).

Discussion
----------

[Form] Added exception when setAutoInitialize() is called when locked

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

It seems that this method was missing a "locked" check, since it changes state and a locked instance should be immutable. However, because `setAutoInitialize()` is useful during the building of a form, it doesn't really matter a lot whether or not it is changed. But for consistency, it would be nicer if this method too was checked.

Commits
-------

c269d6f Added exception when setAutoInitialize is called when locked
@fabpot fabpot closed this Sep 26, 2015
This was referenced Oct 27, 2015
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.

3 participants