Skip to content
Snippets Groups Projects
Commit be4844b5 authored by Samuel Degueldre's avatar Samuel Degueldre
Browse files

[FIX] web_editor: fix original not being properly set when cropping


Previously, if you opened the cropper on an already cropped image, it
would load the crop data for that image. If you then changed the image
and cropped that new image, it would keep most of the metadata of the
previous image when saving, causing any subsequent crop to show the
previous original image instead of the current one.

This commit fixes that by removing all crop-related jQuery data from the
image, so it's considered a fresh crop and a new attachment is created.

closes odoo/odoo#49375

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 196d6b16
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment