[FIX] Do not call success_callback if none given

bzr revid: fme@openerp.com-20110601105652-wmtapmthal3yi9h6
This commit is contained in:
Fabien Meghazi 2011-06-01 12:56:52 +02:00
parent a270d19d81
commit 778b43b2de
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ openerp.base.Session = openerp.base.BasicController.extend( /** @lends openerp.b
} else {
error_callback(response.error);
}
} else {
} else if (success_callback) {
success_callback(response["result"], textStatus, jqXHR);
}
},