[FIX] Do not call success_callback if none given
bzr revid: fme@openerp.com-20110601105652-wmtapmthal3yi9h6
This commit is contained in:
parent
a270d19d81
commit
778b43b2de
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue