- 🇦🇺Australia Stephen Ollman Canberra
#39 also did the trick for me
I needed to un-map that field at /admin/structure/media/manage/document to stop the Media name from being overwritten each time i updated the file.
- 🇪🇸Spain marcoscano Barcelona, Spain
+1 for closing this and relying on the mapping of fields to work as expected.
I agree though that many people won't know this immediately, and I am having a hard time trying to think of a good place to document this... The best I can think of is https://www.drupal.org/docs/8/core/modules/media/creating-and-configurin... → , but that too, isn't too discoverable. Another option could be some help text in the media type config form, but this is really only specific to File/Image media types...
- 🇺🇸United States smustgrave
Ran into this issue today and #39 solved it for me! So think it can be closed.
- 🇮🇳India u_tiwari
What does exactly un-map mean? Is it that if the lets say for a field "Skip Field" is set, it is un mapped?
- 🇩🇪Germany Anybody Porta Westfalica
I can confirm this issue still exists in latest Drupal 10 stable.
@seanB I disagree closing this, because it's definitely a bug that only happens with translations. The original language behaves entriely correct! If the name field is filled already and you edit the name, it's not getting replaced by the file name. Just like the description of the setting says:
Media sources can provide metadata fields such as title, caption, size information, credits, etc. Media can automatically save this metadata information to entity fields, which can be configured below. Information will only be mapped if the entity field is empty.
The bold part is broken with translations enabled! That needs to be fixed.
Also translated media should keep their filled media name on save and not reset! - Status changed to Closed: duplicate
6 months ago 8:47am 11 June 2024 - 🇧🇪Belgium mr.baileys 🇧🇪 (Ghent)
Agreed with @Anybody that current behavior when saving a translation of a media entity still is buggy. However, since in this IS there is no mention of translations, I think this issue should be closed as a duplicate of 🐛 Mapped media fields are overridden with metadata on translation save Needs review , which addressed fields being overwritten when saving a translation of a media entity.