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

Problems with customtag attribute select

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • Customer request
    • 4.3.0, 4.4.0
    • Legacy > Extensions
    • None
    • PHP Version: 5.3.3
      Browser (and version): Chrome 6.0, Firefox 3.6.4

    Description

      In OE, when the select attribute type is used in a customtag and the Required property is set to true for this attribute, the first item in the selection list is not recognized. A validation error is thrown when attempting to save and insert the tag.

      Steps to reproduce

      Enable a selection attribute for the align property in the factbox customtag as follows:

      Add this block to extension/ezoe/settings/ezoe_attributes.ini

      [CustomAttribute_factbox_align]
      Name=Align
      Default=right
      Type=select
      Required=true
      Selection[]
      Selection[left]=Left
      Selection[right]=Right
      Selection[center]=Center

      In the OE field, click the "Insert custom tag" button.

      For Tag field, select "factbox"
      For the Alight field, select "Left" and click OK

      This should produce the following error:

      Error: Invalid values entered, these are marked in red.
      "Align" is required and must have a value

      Attachments

        Activity

          People

            unknown unknown
            naas@ez.no naas@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: