diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-10-27 14:09:20 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-10-27 14:09:20 +0200 |
| commit | e918271f7600d9f77dc6631e48814f0daf951ad8 (patch) | |
| tree | 295629178de5fe3a1cf1dcb8d780661d82df1877 /addons/web_editor/static/src/js/widgets/ace.js | |
| parent | 2f0435f08112251abce2591f44e748896c030420 (diff) | |
| parent | 8fdac4b6b2f2fccafc95ea65b976c7e4028d9832 (diff) | |
[MERGE] forward port branch saas-16 up to 8fdac4b6b2f
Diffstat (limited to 'addons/web_editor/static/src/js/widgets/ace.js')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/ace.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets/ace.js b/addons/web_editor/static/src/js/widgets/ace.js index ff55bb968ed..2112468fa95 100644 --- a/addons/web_editor/static/src/js/widgets/ace.js +++ b/addons/web_editor/static/src/js/widgets/ace.js @@ -385,7 +385,8 @@ var ViewEditor = Widget.extend({ * @returns {integer|string} view ID or less file URL */ _getSelectedResource: function () { - return this.$lists[this.currentType].select2('val'); + var value = this.$lists[this.currentType].select2('val'); + return parseInt(value, 10) || value; }, /** * Loads data the ace editor will vizualize and process it. Default behavior |
