Validate response message for frappe call (#14343)
This commit is contained in:
parent
1b16b772ab
commit
64907e5083
@ -236,7 +236,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
||||
items: my_items
|
||||
},
|
||||
callback: function(r) {
|
||||
if(r.exc) return;
|
||||
if(r.exc || !r.message) return;
|
||||
|
||||
var i = 0;
|
||||
var item_length = cur_frm.doc.items.length;
|
||||
|
Loading…
Reference in New Issue
Block a user