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

eZSelectionField rendering is wrong

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 1.6.0
    • Content > PreView
    • None
    • Centos 7

    Description

      There is a bug in eZSelection field rendering.
      Inside the file "content_fields.html.twig" line 166 should be:
      "{{ fieldSettings.options|slice(selectedIndex, 1) }}"
      instead of:
      "{{ fieldSettings.options[selectedIndex] }}".
      The bug is easly exploitable creating any content with at least a field of eZSelection datatype (multiselect) and trying to render content, you will se wrong items.

      Attachments

        Activity

          People

            Unassigned Unassigned
            garzo garzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: