Skip to content

Commit eb8cd70

Browse files
Fixed creating shipping labels in part-shipment
1 parent 42e615f commit eb8cd70

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Shipping/view/adminhtml/templates/order/packaging

1 file changed

+5
-1
lines changed

app/code/Magento/Shipping/view/adminhtml/templates/order/packaging/popup.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ $girthEnabled = $block->isDisplayGirthValue() && $block->isGirthAllowed() ? 1 :
4444
}
4545
});
4646
packaging.setItemQtyCallback(function(itemId){
47-
var item = $$('[name="shipment[items]['+itemId+']"]')[0];
47+
var item = $$('[name="shipment[items]['+itemId+']"]')[0],
48+
itemTitle = $('order_item_' + itemId + '_title');
49+
if (!itemTitle && !item) {
50+
return 0;
51+
}
4852
if (item && !isNaN(item.value)) {
4953
return item.value;
5054
}

0 commit comments

Comments
 (0)