Skip to content

[Bug]: Select/Multiselect fields accept invalid data #17343

@blankse

Description

@blankse

Pimcore version

11.3.0

Steps to reproduce

  1. Create a Select/Multiselect field in a class with options "A", "B", and "C".
  2. Create an object via the PHP API (e.g., a command) and set its value to "D".

Actual Behavior

Pimcore accepts this value and saves it in the object.

Expected Behavior

Pimcore should throw a ValidationException.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions