Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3396

Custom Block's select attribute multiple selected options for similar values

    XMLWordPrintable

Details

    Description

      When in select attribute of Custom Block there are choices available, that one of the opinions value part is the value of a different option, multiple selections are made on submit.

      Steps to reproduce
      1. Clean installation of eZ Platform 2.5/Ibexa DXP 3.2
      2. Create a new custom block:

       ezplatform_page_fieldtype:
          blocks:
              test_block:
                  name: 'Test block'
                  thumbnail: '/bundles/ezplatformadminui/img/ez-icons.svg#align-justify'
                  views:
                      default:
                          template: '@ezdesign/blocks/text_block.html.twig'
                          name: 'Default'
                  attributes:
                      color:
                          name: 'Color'
                          type: select
                          options:
                              choices:
                                  'Light Blue': 'light-blue'
                                  'Blue': 'blue'
                                  'Red': 'red'
                                  'Green': 'green'

      3. Go to the Backoffice, open any Landing Page in editorial mode.
      4. Place the newly created Test block inside the Landing page. Open configuration view, and select the "Light Blue" option. Press Submit.

      5. Open the Test block configuration view again.

      Results
      Two options are shown as selected: Light Blue and Blue

      Expected Result
      Only one option is shown as selected: Light Blue

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: