diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-10-26 20:07:36 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-10-26 20:07:36 +0200 |
| commit | 4873aeb50159c1dc228380d509ca7e3d6481e632 (patch) | |
| tree | 92e6a923c11f28e08a9c4799223956d6253114bc /addons/web_editor | |
| parent | 1c367e32d6ca49b0310aea2262e9cfc9fd1a83fb (diff) | |
| parent | 991ba1d8616053a23d2cac494808418bcebafbad (diff) | |
[MERGE] forward port branch saas-15 up to 991ba1d8616
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/static/src/js/ace.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/ace.js b/addons/web_editor/static/src/js/ace.js index b7e2daf6ead..1ca910d752a 100644 --- a/addons/web_editor/static/src/js/ace.js +++ b/addons/web_editor/static/src/js/ace.js @@ -452,7 +452,8 @@ var ViewEditor = Widget.extend({ * @return the currently resource id (view ID or less file URL) */ selectedResource: function () { - return this.$lists[this.currentType].select2("val"); + var value = this.$lists[this.currentType].select2("val"); + return parseInt(value, 10) || value; }, /** * The displayResource method forces the view/less file identified by its ID/URL to be displayed in the editor. |
