Problem/Motivation

When delete a translation version that don't use image, the file usage number will been impacted, lead to the image of original node isn't display.

Steps to reproduce

1、Create a content and upload a image in CKEditor field.

2、Save as published

3、Translate this node and delete image in CKEditor

4、Save as published

5、Edit this translate node and Save as published again

6、Edit this translate node and Save as published again

7、Click revision tab and delete revision of step 5

8、Check original node on frontend

The image of original node will disappear.

Proposed resolution

Determine if a translated version is available before changing the count.

Remaining tasks

Make decision on how to fix and implement the fix.

CommentFileSizeAuthor
#3 3405141-3.patch963 bytesOmega_yang

Comments

Omega_yang created an issue. See original summary.

Omega_yang’s picture

Issue summary: View changes
Omega_yang’s picture

StatusFileSize
new963 bytes

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.