U4-8436 - Umbraco.ImageCropper is replacing published image when preview or just save(without publish)

Created by Alexey Skosyrkiy 10 May 2016, 21:27:42 Updated by Alexey Skosyrkiy 10 May 2016, 21:28:36

What did you do?

I have created my own datatype "ImageCropper100100", screenshot attached. Then created simple doctype (attached) and template:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ Layout = null; var nodeWithCropper = Model.Content.AncestorsOrSelf().First(x => x.HasValue("image")); }

<img src='@nodeWithCropper.GetCropUrl("image", "100x100")&quality=70'" />

so, then added a first image -> save+publish -> I see the image on my site. then I remove old image and added a new one. When I click on Preview or just Save (without publish) the published image (on live site) also updated to the new one.

What did you expect to happen?

I expect to see old image on site until I publish new changes.

What actually happened?

The old image was replaced with new one on Preview and Save only clicks.

2 Attachments

Comments

Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.2.6, 7.4.2

Due in version:

Sprint:

Story Points:

Cycle: