-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying Alt Text replaces Media "Name" #1591
Comments
@elizoller thanks for finding this. I've assigned it to myself. |
This is unrelated to Islandora/islandora@d5f88d6, it happens on the release VM too. I'll continue to investigate. |
Ah ok. Just a coincidence I noticed right after I pulled down. Thanks |
I can't figure out what's causing this. The alt text widget in this case is defined in
But I can't figure out why the one in |
Will dig into this today @mjordan and @elizoller sorry for not seeing this issue before now. |
So this isn't our code related AFAICT. That is, media provides ways to map properties out of the file proper to fields: Was able to reproduce this on a vanilla Drupal box without Islandora present by doing the following:
Setting the I guess Islandora could modify what default config settings are being rolled but if this could be changed on a per install basis. |
Wait, "Name" and "alt text" appear as two different fields on the Media. If "Alt text" were mapped to "main" then I would expect the behaviour that you're describing. Are you saying that in drupal, when "Name" is mapped to "Name", changing the alt text causes the Name, as stored in the database, to be overwritten? |
As in if you had changed the |
I've just run into this issue also, and it's present on current Islandora sandbox. |
The patch from https://www.drupal.org/project/drupal/issues/3192059#comment-13989559 applies to Drupal 8.9.13 ok and resolves this issue. |
@elizoller is this fixed? As per the associated drupal.org issues final comment "I'm moving this back to 9.1.x and marking as Fixed" - We are assuming this is resolved in 9.1.x with earlier Drupal users having to apply the patch linked in the issue. |
When I edit an existing media item and change the value in the "Alt Text" field and save the media, the "Name" of that media gets rewritten as the filename. If I don't change the "Alt Text" when updating a media, the "Name" field persists as whatever I had previously entered. I believe this is related to: Islandora/islandora@d5f88d6
This is undesirable behavior in my opinion because we would like a custom "Name" for a media to persist, but please let me know if this is working as designed.
The text was updated successfully, but these errors were encountered: