Deleting a translation deletes the entire entity id

Created on 5 October 2017, about 7 years ago
Updated 15 October 2024, 3 months ago

Steps to reproduce:

  1. Enable Language module
  2. Add a language to the site
  3. Enable content translation
  4. Set Poll to be translatable at admin/config/regional/content-language
  5. Navigate to admin/content/poll
  6. Create a new poll
  7. Translate the poll to another language
  8. Delete the translation

The expected result is that the translation will be deleted but the original source language will remain. The actual outcome is that both versions are now gone.

Disclaimer: I am filing this issue because I am experiencing the exact same problem with a custom entity I have defined and I have been completely unable to figure out what I'm missing in my entity definition. I was hoping that this module was going to have it working, as it's the closest example to what I'm doing that I've found so far. [I've looked at Node, User, Taxonomy, Block Content, and Media Entity and can't figure out what they are doing differently. All of them allow bundles, though. So, they are not the greatest match for my use case.]

I am happy to discuss this with you and to help write a patch to fix this module so that I can learn what I need to do to fix mine as well.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States vegantriathlete Lakewood, CO

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.

  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024