fix: 'link to material request' button not showing any message if no Material Request found (#19064)
This commit is contained in:
parent
8cc2f83bd5
commit
2818b5bbe7
@ -293,7 +293,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
||||
items: my_items
|
||||
},
|
||||
callback: function(r) {
|
||||
if(!r.message) {
|
||||
if(!r.message || r.message.length == 0) {
|
||||
frappe.throw(__("No pending Material Requests found to link for the given items."))
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user