fix: Don't overwrite doctype while setting attributes in child row (#23228)

This commit is contained in:
Marica
2020-09-01 15:29:27 +05:30
committed by GitHub
parent 14ea8928f5
commit 05a90baddd

View File

@@ -508,7 +508,7 @@ erpnext.buying.get_items_from_product_bundle = function(frm) {
var d = frm.add_child("items"); var d = frm.add_child("items");
var item = r.message[i]; var item = r.message[i];
for ( var key in item) { for ( var key in item) {
if ( !is_null(item[key]) ) { if ( !is_null(item[key]) && key !== "doctype" ) {
d[key] = item[key]; d[key] = item[key];
} }
} }