summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-03-16 11:22:50 +0000
committerSamuel Degueldre <sad@odoo.com>2020-03-17 15:17:30 +0000
commit7ae7f47cd7fa5f13f110ae5636268221e26bf683 (patch)
tree2f508e9207ef4a369041be221fbaf161c15c264c /addons/web/static/src/js/views/basic/basic_renderer.js
parent915abb533ce70a312dc333bc818a23ad87828cb6 (diff)
[FIX] web_editor: stop base 64 being saved in the DOM when recropping
When saving after cropping an attachment, a new cropped attachment is created, and the temporary base64 URL is replaced by the url of the new attachment. However, when cropping an image for a second time, the original image is recropped, and the cropped image attachment that was created previously is overriden with the new data. Previously, the step that overrides the temporary base64 url with the url of the croppped attachment was not present when overriding a previously cropped attachment, meaning it would be saved as is in the DOM, and the overriden attachment would no longer have any links pointing to it. This commit fixes that by overriding the temporary base64 url both when cropping for the first time, but also for subsequent re-crops of the same image. closes odoo/odoo#47836 X-original-commit: 3b23f137a2b519b88087452fa4c33a9f97ccdf61 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions