Skip to content
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

Media Replace and Delete: with 'Delete Old Version' unchecked causes name conflict and inconsistencies #3454

Closed
ifarzana opened this issue Jul 16, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@ifarzana
Copy link

When a media file is replaced with the option Delete the old version unchecked, the old version remains hidden after replacement, which causes duplicate errors when trying to add a media with the same name (after we delete the replaced version).

The expected behaviour should have been that when we delete the file, the latest old version becomes visible in the Grid.

Steps to Reproduce:

Add media

  • Add a media file named media-1.
  • Note the media ID (e.g., 9531).

Replace media

  • Replace the existing media file with another file, media-replaced, and ensure the option Delete the old version is unchecked.
  • Old version of the media persisted with ID 9531
  • New version gets new ID 9532

Remove the new media

  • Remove ID 9532 and select Force delete from any existing layout assignments

Expected Behaviour:

  • The old media (ID 9531) should appear as the new media for 9532

Actual Behaviour:

  • The old version media file (ID 9531) still hidden from the Library grid.
  • There is no media-1 image in the Library

Note that, currently an attempt to add the media file media-1.png again results in an error message is displayed: You already own media with this name, please choose another. which is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants