Skip to content

serialize_collection_form Attribute Not Passed Options #42

@jproffitt3ge

Description

@jproffitt3ge

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"
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions