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

serialize_collection_form Attribute Not Passed Options #42

Open
jproffitt3ge opened this issue Mar 12, 2015 · 0 comments
Open

serialize_collection_form Attribute Not Passed Options #42

jproffitt3ge opened this issue Mar 12, 2015 · 0 comments

Comments

@jproffitt3ge
Copy link

In CollectionTypeExtension.php, the mockup child form that is created and inserted into the "serialize_collection_form" attribute of Collections is not created with the "options" option passed to the collection.

This is a problem when the child form requires a particular option, or changes its behavior based on a particular option. I modified line 26 so that 24-27 read

    $builder->setAttribute(
        'serialize_collection_form',
        $builder->getFormFactory()->create($options['type'], null, $options['options']) // CHANGED, added "options"
    );
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

1 participant