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

Impossible to use embed when there are duplicate AvailableViewModes (legacy)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • None

    Description

      1. Install https://github.com/ezsystems/ezpublish-legacy
      2. settings/override/content.ini.append.php:

      ...
      [embed]
      AvailableViewModes[]
      AvailableViewModes[]=embed
      AvailableViewModes[]=embed-inline
      AvailableViewModes[]=full
      AvailableViewModes[]=line
      AvailableViewModes[]=embed
      AvailableViewModes[]=custom
      

      3. Edit any object in admin: try to add embed with custom view (or any other view).
      4. Disable editor and check content of embed object:

      <embed view="5" size="medium" custom:offset="0" custom:limit="5" href="ezobject://59" />
      

      Expected result:

      <embed view="custom" size="medium" custom:offset="0" custom:limit="5" href="ezobject://59" />
      

      I`m deploying PR to fix it shortly.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: