Save translated version of entity, if one exists

Created on 19 July 2021, over 3 years ago
Updated 14 April 2023, over 1 year ago

Problem/Motivation

I wanted to implement this sortable views on a list of translated entities and make sure that the individual translated nodes had different orderings.

Therefore, my patch updates the postSave() method by checking whether there is an existing node, and if there is then it will save the translated version of the node.

Feature request
Status

Needs work

Component

Code

Created by

🇬🇧United Kingdom samberry

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪Belgium dieterholvoet Brussels

    Ideally new tests would be added that make sure translations are saved separately.

  • 🇧🇪Belgium dieterholvoet Brussels

    Having a view listing multiple translations of the same node would also cause issues, since only a list of ID's is sent to /sortableviews/ajax. Ideally, that would be a list of ID/langcode combinations. Let's fix that here as well.

Production build 0.71.5 2024