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

[4.x]: Photos are not restored after the revision is restored #13626

Closed
iZerus opened this issue Aug 31, 2023 · 5 comments
Closed

[4.x]: Photos are not restored after the revision is restored #13626

iZerus opened this issue Aug 31, 2023 · 5 comments
Assignees

Comments

@iZerus
Copy link

iZerus commented Aug 31, 2023

What happened?

Description

I created a record, added photos to it. Then I deleted the photos. But when I decided to restore the previous version (where there were photos), the photos never recovered.
P.S. When deleting photos, photos remain in assets

Steps to reproduce

  1. Create a section with the Assets field (with versioning control)
  2. Create an entry in this section and attach photos to it
  3. Save it
  4. Delete photos from entry and save
  5. Try to restore the version with photos

Expected behavior

Photos must be present in the entry

Actual behavior

Photos are missing

Craft CMS version

4.5.3

PHP version

8.1

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

  • Redactor 3.0.4
  • Site Switcher 2.3.0
@i-just
Copy link
Contributor

i-just commented Sep 6, 2023

Hi, thanks for reporting! I raised a PR to adjust this.

@brandonkelly
Copy link
Member

Craft 4.5.4 is out with that fix. Thanks again!

@olivierbon
Copy link
Member

There might be a part two to this. It also happens with Matrix Blocks.

oli_mehoaSuB.mp4

@brandonkelly
Copy link
Member

Thanks @olivierbon! Fixed for the next release via #13740.

@brandonkelly
Copy link
Member

Craft 4.5.6 is out now with that fix.

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

No branches or pull requests

4 participants