Skip to content

serialize_collection_form Attribute Not Passed Options #42

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions