odoo/odoo#204896

Created by fw-bot
Merged at 2aecb3f1bf9ed3875ba5ee2540d3b7ed1cb3d55c

Statuses:

label
odoo-dev:master-16.0-opw-4686236-fix_saving_background_image_editor-wasa-427835-fw
head
002517adc4d3e6748bb64ba64532f2ee79ffd3b9
merged
7 months ago by Walid Sahli (wasa)
odoo/odoo
16.0 #204662
17.0 #204812
saas-17.4 #204864
18.0 #204875
saas-18.1 #204882
saas-18.2 #204891
saas-18.3
saas-18.4
19.0
master #204896

[FW][FIX] web_editor: fix background image handling in media manager

Problem:
Commit f523cb8 did not properly handle background images, leading to issues when retrieving the correct attachment source.

Solution:
Use el.dataset.bgSrc to get the correct attachment source for background images.

Steps to reproduce:
1. Add a "Banner" block.
2. Update the image.
3. Save.
- Issue: image lost.

opw-4686236


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #204812
Forward-Port-Of: #204662