Validate response message for frappe call (#14343)

This commit is contained in:
Sushant Nadkar 2018-06-05 10:33:04 +05:30 committed by Rushabh Mehta
parent 1b16b772ab
commit 64907e5083

View File

@ -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;