Skip to content

[Form][FormEvents] Not model transformed data bound to preSetData event #7807

Closed
@maciej-pyszynski

Description

@maciej-pyszynski

On preSetData data send to the event is not processed by modelTransformer. The easiest case to test is creating collection type with attached model transformer.

Data bound to the event is original data instead of transformed one!

This is required for example when transforming collection from array('key' => 'value') format to array(0 => array('key' => 'original_key', 'value' => 'original_value')).

If collection receive 1st format (wrong - not transformed) instead of 2nd one (good - only model transformed) it created bad names for inputs (based on original key, instead of on transformed ones)

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