Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.2, 5.3.5.1
-
None
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
- relates to
-
EZP-24540 When deleting translation, its relations are not deleted
- Closed