cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.x]: "Save as new Asset" via Edit action in drawer menu not replacing originally selected Asset in the field

Open melbazany opened this issue 7 months ago • 0 comments

What happened?

Description

Related discussion thread

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

  1. Create an Asset field; add to Entry
  2. Open Entry with Asset field; upload Asset file to field and save Entry.
  3. Double-click the Asset thumbnail in the field to open the overlay drawer menu. Select "Edit image" from button options on image hover.
  4. Modify the image as desired (crop, rotate, etc.). Click "Save as new Asset".
  5. 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

Installed plugins and versions

melbazany avatar Jun 16 '25 15:06 melbazany