- Issue created by @sreher
- Status changed to Postponed: needs info
about 1 year ago 4:36pm 26 March 2024 - 🇩🇪Germany drubb Sindelfingen
Hey Sven,
just to clarify:
The attached PDF in the translation is the same file as in the original? Or is it a translated file, with a different name?
- 🇩🇪Germany drubb Sindelfingen
I'll need to take a closer look, but for now:
We'll need to handle all ways of deletion, not just manual ones (using the form).
When deleting any translation (or the origin), we need to load all existing translations and check
if the file id of the thumbnail is used in any other translation - in this case, the
file must not be deleted. This would be the case, if a media file (and thus its thumbnail)
is reused in multiple translations. - 🇧🇪Belgium gillesv Belgium
We're experiencing a similar issue with Drupal v10.4.1, Media Thumbnails v2.0.0 and Media Thumbnails PDF v2.0.1
We have a Media type called "Document" that can hold a PDF. When translating the media item into multiple languages, where each translation holds a different PDF, it often (but not always) happens that the thumbnail of the original language gets removed when saving a translation. If you then resave the original translation, it gets its thumbnail back, but the thumbnail of one of the translations gets deleted. If you then resave that translation, the thumbnail of the original item is gone again.
I tried the patches provided here, but they don't seem to fix the issue.