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

Inconsistent behavior of related objects list when using multiple translations.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • Database related, Language, Misc
    • None
    • eZ Publish 4.6

    Description

      When publishing a content object in multiple languages, there is inconsistent behavior in the related objects:

      • After publishing on the default language (eng-GB), the related objects listed are solely from this language.
      • When publising using a different language, the list contains the related objects from ALL published languages.

      After some investigation, it was verified that the data stored in ezcontentobject_link table reflects this situation:

      • For any version, in the English language, a single record is created for a related object "link".
      • If the published language is different (say, fre-FR), a record is created for each link, and each existing translation of that object.
        However, there is no field on this table to determine the language that a link/record refers to...
      Steps to reproduce
      • Create and publish a content object in English language, adding a related object "A"
      • Create and publish a new translation, setting the related object to "B"
        Verify that the list of related objects (in the administration interface, or using a fetch('content', 'related_objects')
        includes objects from all languages of this content ("A" and "B").
      • Now, create and publish a new version in English language once more.
        Verify that the list of related objects is solely for that language ("A").

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: