Skip to content

Commit 82a0445

Browse files
committed
AC-14049: Missing Billing Address Error in Admin Dashboard When Creating Order via REST API with Only Payment Information
1 parent 450d89d commit 82a0445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Plugin/Model/OrderRepositoryPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private function validateBillingAddress(OrderInterface $entity): void
5656
*/
5757
private function validateOrderItems(OrderInterface $entity): void
5858
{
59-
$items = $entity->getItems();
59+
$items = $entity->getAllVisibleItems();
6060

6161
if (!$items || count($items) === 0) {
6262
throw new LocalizedException(__('Please specify order items.'));

0 commit comments

Comments
 (0)