summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorGorash <chm@odoo.com>2019-05-06 10:32:42 +0000
committerGorash <chm@odoo.com>2019-05-06 10:32:42 +0000
commite244fa23ade0944d578e2b843eed856e1c327d57 (patch)
tree417a513bebcaede9dd8b50db0b0a2a5d2bf9c237 /addons/web_editor/static/src
parenteaeff40236c2c63d5e7cfb2bffe59ee5957f5849 (diff)
[FIX] web_editor: drop an image in the 'mail.compose.message' modal
Issue: Can not drop an image into the modal's editor because the server request a positional res_id arguments. closes odoo/odoo#33232 Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/wysiwyg/plugin/dropzone.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/dropzone.js b/addons/web_editor/static/src/js/wysiwyg/plugin/dropzone.js
index 3990ce4208e..d3dc044c005 100644
--- a/addons/web_editor/static/src/js/wysiwyg/plugin/dropzone.js
+++ b/addons/web_editor/static/src/js/wysiwyg/plugin/dropzone.js
@@ -150,7 +150,7 @@ var DropzonePlugin = Plugins.dropzone.extend({
route: '/web_editor/add_image_base64',
params: {
res_model: options.res_model,
- res_id: options.res_id,
+ res_id: options.res_id || 0,
image_base64: imageBase64.split(';base64,').pop(),
filename: fileName,
},