diff options
| author | mgh-odoo <mgh@odoo.com> | 2019-04-01 06:06:42 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2019-04-17 09:30:38 +0000 |
| commit | 1f57d4a34c9c8c68d023de7c0ca88be62f051ba3 (patch) | |
| tree | 3f5bd28774d200d8ed40b1426de0e0dc0e1af415 /addons/web_editor/static/src/js/backend/convert_inline.js | |
| parent | defbb168356aec6d75750f8d6337a72c823ef382 (diff) | |
[FIX] web_editor: FieldHtml commitChanges called too soon
The original issue appeared in mass_mailing where triggering the mail
template preview throws a client error.
This commit prevents commitChanges() from being called before the
element is rendered.
Task-ID: 1950784
Diffstat (limited to 'addons/web_editor/static/src/js/backend/convert_inline.js')
| -rw-r--r-- | addons/web_editor/static/src/js/backend/convert_inline.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/backend/convert_inline.js b/addons/web_editor/static/src/js/backend/convert_inline.js index a3fc6282ede..b5c69102ff6 100644 --- a/addons/web_editor/static/src/js/backend/convert_inline.js +++ b/addons/web_editor/static/src/js/backend/convert_inline.js @@ -396,7 +396,7 @@ FieldHtml.include({ * @override */ commitChanges: function () { - if (this.nodeOptions['style-inline']) { + if (this.nodeOptions['style-inline'] && this.isRendered) { this._toInline(); } return this._super(); |
