forked from odoo/odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] web_editor: update gallery thumbnail when modifying main image
When the image of an Image Gallery is `o_modified_image_to_save`, only its main image is replaced by the new attachment's URL: the thumbnail image remains the original image. This is a bigger problem after the previous commit because the thumbnail remains the data URL that is obtained with the conversion of the image to webp. This commit makes sure that thumbnails are also updated on save. Steps to reproduce: - Drop an "Image Gallery" snippet. - Remove all images. - Add jpeg images: images and thumbnails are webp in base64. - Save. => The main images are relative URLs to the webp attachment, but the thumbnail images are still in base64. task-3666894 closes odoo#170037 X-original-commit: f377625 Signed-off-by: Benjamin Vray (bvr) <[email protected]>
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters