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

ChildForm modify method does not correctly change options #480

Open
eretica opened this issue Feb 4, 2019 · 2 comments
Open

ChildForm modify method does not correctly change options #480

eretica opened this issue Feb 4, 2019 · 2 comments
Assignees

Comments

@eretica
Copy link

eretica commented Feb 4, 2019

Normal Form modify method is no issue
but ChildForm modify method is no correctly.

$parentForm->modify(
    'child_field_key',
    'text',
    array_merge($child->getOptions(), ['attr' => ['disabled' => 'disabled'])
);

avobe disabled option is not reflected

$child->setOptions('attr', ['disabled' => 'disabled'])

above 'disabled' option it will work

@mikeerickson mikeerickson self-assigned this Feb 27, 2019
@rom1vtle
Copy link

yes same probleme for me!
modify method does not correctly change options on child form

@rudiedirkx
Copy link
Collaborator

@kristijanhusak @mikeerickson I don't use modify(). You?

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

No branches or pull requests

4 participants