mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
fix: 'link to material request' button not showing any message if no Material Request found (#19064)
This commit is contained in:
committed by
Nabin Hait
parent
8cc2f83bd5
commit
2818b5bbe7
@@ -293,7 +293,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
|||||||
items: my_items
|
items: my_items
|
||||||
},
|
},
|
||||||
callback: function(r) {
|
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."))
|
frappe.throw(__("No pending Material Requests found to link for the given items."))
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user