diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-10-20 16:12:14 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-10-20 17:14:10 +0200 |
| commit | fd65dbaa1fa2f0169f0b44c7fe90a35b4cb137b4 (patch) | |
| tree | c8d3458c101a1361438312d1ed556914297f385c /addons/web/static/src | |
| parent | dd2a619ad55191e58fb7d7112009624910142390 (diff) | |
[FIX] web: session.get_file should return a value
The session get_file method should return the value from the
ajax.get_file method, otherwise we lose information (this is necessary
to be able to react properly to the fact that the download was blocked)
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/core/session.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/core/session.js b/addons/web/static/src/js/core/session.js index 033d7995c9c..670e367be2e 100644 --- a/addons/web/static/src/js/core/session.js +++ b/addons/web/static/src/js/core/session.js @@ -273,7 +273,7 @@ var Session = core.Class.extend(mixins.EventDispatcherMixin, { options.data.session_id = this.session_id; } options.session = this; - ajax.get_file(options); + return ajax.get_file(options); }, /** * (re)loads the content of a session: db name, username, user id, session |
