Skip to content

Exceptions in _validate() method of FormFields not being propogated #42

@ghost

Description

I just noticed that all the FormFields that override _validate() do not have their ValidationErrors (if the occur) caught and propagated to the "invalid" widget for display in the form. Example Widgets were the CheckBoxList and CheckBoxTable. To fix this I had to place the @twc.validation.catch_errors decorator on top of them. I noticed that in "dynforms" and core, they seem to pretty consistently do this for these methods when they are overridden. Any comments on this? Is this a bug in "forms" or in how the exceptions are being caught and handled in "core".

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