Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19644

PublicAPI: Creating an selection object does not validate available options

    XMLWordPrintable

Details

    Description

      If you create an object using a class with the ezselection datatype, it is possible to store a value that is not present in the options array.

      Steps to reproduce

      1. Create a new class with an ezselection datatype
      2. Place two values on the options table ex: BMW, Audi
      3. Using the public API create an object of this class type
      4. Define the ezselection field as "array ( 2 )" a non existing option
      5. Verify that no exception is trown and that the object is create with an empty ezselection field.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jpingo jpingo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: