Skip to content

Commit 3543552

Browse files
committed
MAGETWO-46720: [Github] Shipping Address not exposed for orders api #2628
1 parent d77542e commit 3543552

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/code/Magento/Sales/Model/Order/ShippingBuilder.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ public function create()
8080
if ($this->order->getEntityId()) {
8181
/** @var ShippingInterface $shipping */
8282
$shipping = $this->shippingFactory->create();
83-
$shippingAddress = $this->order->getShippingAddress();
84-
if ($shippingAddress) {
85-
$shipping->setAddress($shippingAddress);
86-
}
83+
$shipping->setAddress($this->order->getShippingAddress());
8784
$shipping->setMethod($this->order->getShippingMethod());
8885
$shipping->setTotal($this->getTotal());
8986
}

0 commit comments

Comments
 (0)