From f50f0bd0897a569b5e9990b6bc0928b6d4ea59b5 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 22 Nov 2012 15:29:30 +0100 Subject: [PATCH] [IMP] auth_signup: do not shadow the `deferred` returned by Login.start._super() bzr revid: odo@openerp.com-20121122142930-bq263k9p01l99sa2 --- addons/auth_signup/static/src/js/auth_signup.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/auth_signup/static/src/js/auth_signup.js b/addons/auth_signup/static/src/js/auth_signup.js index 3025069dece..9642a15f5c9 100644 --- a/addons/auth_signup/static/src/js/auth_signup.js +++ b/addons/auth_signup/static/src/js/auth_signup.js @@ -32,9 +32,11 @@ openerp.auth_signup = function(instance) { // in case of a signup, retrieve the user information from the token if (self.params.db && self.params.token) { - d = self.rpc("/auth_signup/retrieve", {dbname: self.params.db, token: self.params.token}) + d.done(function() { + self.rpc("/auth_signup/retrieve", {dbname: self.params.db, token: self.params.token}) .done(self.on_token_loaded) - .fail(self.on_token_failed); + .fail(self.on_token_failed) + }); } return d; },