Skip to content

[Form] Guarantee that setData() was called on each form element after initialize() #8748

@webmozart

Description

@webmozart

When the call to FormInterface::initialize() completes, setData() should have been called at least once on each element in the form tree to guarantee that all *_SET_DATA listeners were triggered. Currently, this is not the case for unmapped fields or fields with empty property paths, because these are skipped by the data mapper, thus setData() is not called before initialize() ends, but only later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions