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

edit main language of object will show related objects only from main language

    XMLWordPrintable

    Details

      Description

      The relations used are all in the context of a relation list datatype. for tests, add a relationlist to the "article" class.
      When an object has more than one language, editing the main language will only update the related objects with the ones declared in the main translation. secondary translations add all related objects.

      test:
      1 - use a class C with a relationlist field
      2 - create a C object in ENG, add one object X (any object is good) to the relation list, publish
      3 - object C shows 1 relation in the tab
      4 - edit a new translation FRE, add two objects to list different from X, publish
      5 - relations tab shows 3 objects
      6 - edit the ENG translation, publish
      7 - relations tab shows only 1 object again, wrong

      additional information:
      using the query
      select * from ezcontentobject_link where from_contentobject_id = <id created in step 1>
      after each of the above steps, we can check that as new versions are created:

      • if the version is from main language, only the related object in that version is added.
      • if version is another language, all related objects are added.

      in test example below, the versions 1,3,5 refer to the main ENG translation:

      │+--------------------------+-----------------------+----------------------------+-----+---------------+---------------------+
      │| contentclassattribute_id | from_contentobject_id | from_contentobject_version | id  | relation_type | to_contentobject_id |
      │+--------------------------+-----------------------+----------------------------+-----+---------------+---------------------+
      │|                      524 |                  1595 |                          1 |  83 |             8 |                 626 |
      │|                      524 |                  1595 |                          2 |  93 |             8 |                 626 |
      │|                      524 |                  1595 |                          2 |  94 |             8 |                 620 |
      │|                      524 |                  1595 |                          2 |  95 |             8 |                1574 |
      │|                      524 |                  1595 |                          3 | 101 |             8 |                 626 |
      │|                      524 |                  1595 |                          4 | 108 |             8 |                 626 |
      │|                      524 |                  1595 |                          4 | 109 |             8 |                 620 |
      │|                      524 |                  1595 |                          4 | 110 |             8 |                1574 |
      │|                      524 |                  1595 |                          5 | 117 |             8 |                 626 |
      │+--------------------------+-----------------------+----------------------------+-----+---------------+---------------------+
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.bras@ez.no Paulo Bras (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: