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

Javascript error, when embedding video objects with empty ezimage attribute

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.0rc1
    • 4.1.0rc1
    • None
    • Operating System: 5.2.4-2ubuntu5.1
      PHP Version: 5.2.5
      Database and version: Mysql 5
      Browser (and version): Firefox 2.0 / 3.0

    Description

      I modified the video class by adding an arbitrary attribute of the type ezimage.

      When i want to embed an object of this class (which has no image set) into an ezxmltext with the ezoe, a javascript error occurs. By clicking on the ok button, some object is actually added to the online editor field, but the browse window does not close and the video does not render, when viewing e.g. the article.

      The error is:
      eZOEPopupUtils.embedObject.data_map[imageAttributes[0]].content[size] has no properties

      Everything works fine, when embed a video with an uploaded image.

      Steps to reproduce

      Create a class with a video and an arbitrary image attribute.
      Create an object of this class and keep the image attribute empty.
      Create an object of a class with a XML text block (e.g. article) and embed the created the created video object with the ezoe.

      Attachments

        Activity

          People

            andre1 andre1
            jensg jensg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: