From fd65dbaa1fa2f0169f0b44c7fe90a35b4cb137b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 20 Oct 2017 16:12:14 +0200 Subject: [PATCH] [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) --- addons/web/static/src/js/core/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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