summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorJason Van Malder <jvm@odoo.com>2019-12-18 07:35:55 +0000
committerJason Van Malder <jvm@odoo.com>2019-12-19 15:26:15 +0000
commitfb926fe883b0fa3a509799b173d4d9abbc7910ab (patch)
tree20f04a39418a96d29da62d88c3d90e42db8ec319 /addons/web/static/src/js/views/basic/basic_controller.js
parentc44d84600643839cea5c3528f92968942cbd3402 (diff)
[FIX] web_editor: fix mail template toolbar in debug mode
Issue - Install Mail template - Enable debug mode (normal or assets) - Create or edit a mail template - Click in the text editor The toolbar is not showing up (it does when we're not in debug mode) Cause We are doing `splice(-1, 0, ['view', ['codeview']])` on toolbar which is undefined, the method crashes and the toolbar doesn't render. Solution Checking if the toolbar is defined before doing all that logic. OPW-2151675 X-original-commit: 0e5ca50d5a8401bb3495e83691eab5c86a97a616
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions