cms
cms copied to clipboard
[5.x]: "Save as new Asset" via Edit action in drawer menu not replacing originally selected Asset in the field
What happened?
Description
The newly saved Asset should replace the original Asset when modifying an Asset file within an Entry, without needing to manually replace the image file with the newly created image file.
Steps to reproduce
https://github.com/user-attachments/assets/42d8ac73-e969-4717-b97a-8ff132e94bc7
- Create an Asset field; add to Entry
- Open Entry with Asset field; upload Asset file to field and save Entry.
- Double-click the Asset thumbnail in the field to open the overlay drawer menu. Select "Edit image" from button options on image hover.
- Modify the image as desired (crop, rotate, etc.). Click "Save as new Asset".
- Image editing menu closes; overlay drawer menu remains open.
Expected behavior
The newly modified asset from the "Save as new Asset" adjustments replaces the originally uploaded Asset in the field.
Actual behavior
The Asset "saved as new Asset" is simply saved to the Asset volume. The user must remove the original Asset in the field, and Replace the image with the newly created "new asset".
Craft CMS version
5.7.
PHP version
8.2
Operating system and version
macOS Sequoia 15.5
Database type and version
MySQL 8.0
Image driver and version
GD 8.2.28