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

Relation fields displays objects from other translations

    XMLWordPrintable

Details

    Description

      Objects in ezobjectrelation and ezobjectrelationlist are not properly displayed/fetched when creating multiple language translations

      Relation List

      When saving related objects with ezobjectrelationlist for a specific translation it will display all related objects for all translations by mistake.

      Steps to reproduce

      Start with a multi-language setup, with at least two languages (let's consider eng-GB and nor-NO)

      1. Create a new Content type which includes a ezobjectrelationlist field type
      2. Create a new content object in English (eng-GB) of the content type you created in the previous step
      3. In the ezobjectrelationlist field add 3 content objects (any contents object will do)
      4. Publish your content object
      5. Create a new translation of the same content object, but this time in Norwegian (nor-NO)
      6. In the ezobjectrelationlist field of the Norwegian translation add 2 content objects (select different content objects than the English translation)
      7. Publish your Norwegian translation

      If you view or edit any of these two translations 5 related objects will be displayed on the ezobjectrelationlist field (3 + 2).
      This seems to happen only of the backend.

      Relation

      When saving a related object with ezobjectrelationl for a specific translation it will display all related object of the first translations by mistake.

      Steps to reproduce

      Start with a multi-language setup, with at least two languages (let's consider eng-GB and nor-NO)

      1. Create a new Content type which includes a ezobjectrelation field type
      2. Create a new content object in English (eng-GB) of the content type you created in the previous step
      3. In the ezobjectrelation field link to a content
      4. Publish your content object
      5. Create a new translation of the same content object, but this time in Norwegian (nor-NO)
      6. In the ezobjectrelation field of the Norwegian translation add a different content object as the english translation
      7. Publish your Norwegian translation

      If you view or edit the Norwegian translation, the related content will be the one from the english one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricardo.correia-obsolete@ez.no Ricardo Correia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: