Problem/Motivation

Until https://www.drupal.org/project/trash/issues/3376216 gets resolved, translations should not be allowed to be deleted to prevent any data loss.

Steps to reproduce

See https://www.drupal.org/project/trash/issues/3376216

Proposed resolution

Display an a message when a user tries to delete the translation, saying that a translation should not be deleted, but unpublished.

Remaining tasks

Open a MR.

User interface changes

API changes

Data model changes

Issue fork trash-3494419

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alecsmrekar created an issue. See original summary.

alecsmrekar’s picture

alecsmrekar’s picture

Test steps for the MR:

  1. drush si -y
  2. drush en -y content_translation trash
  3. Go to /admin/config/regional/language and add Spanish as a new language
  4. Go to /admin/config/regional/content-language and enable translation for Article nodes
  5. Add a new Article
  6. Add a Spanish translation
  7. Go to /es/node/1/delete, and ensure you can't submit the form. There should be a message saying "Moving translations to the trash bin is currently not supported. Unpublish the translation instead.".
alecsmrekar’s picture

Status: Needs work » Needs review
alecsmrekar’s picture

Assigned: alecsmrekar » Unassigned
amateescu’s picture

Status: Needs review » Needs work

Posted an issue in the MR.

alecsmrekar’s picture

Status: Needs work » Needs review
amateescu’s picture

Title: Prevent deleting translations » Prevent deleting translations until we have full multilingual support
Status: Needs review » Fixed

Merged into 3.x, thanks!

plach’s picture

I had a look at the MR and did some testing and this looks good to me as well, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.