Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] TransformationFailedException is swallowed  #9989

Copy link
Copy link
Closed
@davidkalosi

Description

@davidkalosi
Issue body actions

The thrown TransformationFailedException is swallowed by the form component
it is happening in the code block bellow

excerpt from Form.php starting at line 631

          $modelData = $this->normToModel($normData);
            $viewData = $this->normToView($normData);
        }
    } catch (TransformationFailedException $e) {
        // the exception is caught here and is not throw again 
        $this->synchronized = false;

        // If $viewData was not yet set, set it to $submittedData so that
        // the erroneous data is accessible on the form.
        // Forms that inherit data never set any data, because the getters
        // forward to the parent form's getters anyway.
        if (null === $viewData && !$this->config->getInheritData()) {
            $viewData = $submittedData;
        }
    }

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.