[FIX] login params
bzr revid: al@openerp.com-20121114151714-i0hsz4lyfmps307x
This commit is contained in:
parent
923f75eeef
commit
36e4ed47b7
|
@ -531,6 +531,9 @@ instance.web.Login = instance.web.Widget.extend({
|
|||
this.selected_db = null;
|
||||
this.selected_login = null;
|
||||
this.params = action.params || {};
|
||||
if (_.isEmpty(this.params)) {
|
||||
this.params = $.bbq.getState(true);
|
||||
}
|
||||
|
||||
if (this.params.login_successful) {
|
||||
this.on('login_successful', this, this.params.login_successful);
|
||||
|
|
Loading…
Reference in New Issue