Thanks to visit codestin.com
Credit goes to github.com

Skip to content

'invalid_message' has no more effect on 'ChoiceType' with option 'multiple' #40636

Closed
@jochen-jung

Description

@jochen-jung

Symfony version(s) affected: symfony/form >=5.2.4

Description
Since symfony/form 5.2.4 our custom error message provided with 'invalid_message' has no more effect.

How to reproduce
Bug reproducer: https://github.com/jochen-jung/invalid_message_bug
Call endpoint https://127.0.0.1:8000/bug after checking out.

What I would expect in the second dump is:
"platforms: ERROR: Invalid Platform selected."

What you see instead is:
"platforms: ERROR: The value array is not valid."

Possible Solution
It works fine, when downgrading to "symfony/form": "^5.2.3".
However I would expect it in current versions work as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions