From 314a680ab438d5329f27f4e4825531c5bcce0152 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Wed, 22 Jun 2016 17:56:09 +0200 Subject: [PATCH] [FIX] web_editor: `save` method of RTE is async So if you include this method without returning the deferred, weird things happen and i lose a lot of time. --- addons/web_editor/static/src/js/snippets.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js index ee0e07e4514..ca8819bff50 100644 --- a/addons/web_editor/static/src/js/snippets.editor.js +++ b/addons/web_editor/static/src/js/snippets.editor.js @@ -39,7 +39,7 @@ editor.Class.include({ }, save: function () { this.buildingBlock.clean_for_save(); - this._super(); + return this._super.apply(this, arguments); }, });