Save translated version of entity, if one exists

Created on 19 July 2021, almost 3 years ago
Updated 14 April 2023, about 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.69.0 2024