commit | 64907e5083f9f8ec2453a8d0492c777afa933c8f | [log] [tgz] |
---|---|---|
author | Sushant Nadkar <sushantnadkar@users.noreply.github.com> | Tue Jun 05 10:33:04 2018 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Tue Jun 05 10:33:04 2018 +0530 |
tree | 6b490fac6597a70d740cc555dd0306e2dbb804bb | |
parent | 1b16b772aba8c5a8bac79c98b69bca2c7e0a1e94 [diff] |
Validate response message for frappe call (#14343)
diff --git a/erpnext/public/js/controllers/buying.js b/erpnext/public/js/controllers/buying.js index 68bb2b8..bbeb8e9 100644 --- a/erpnext/public/js/controllers/buying.js +++ b/erpnext/public/js/controllers/buying.js
@@ -236,7 +236,7 @@ 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;