Skip to content

Commit e417b4b

Browse files
committed
MAGETWO-70498: [Magento Cloud] - /rest/default/V1/order/<order id>/ship and configurable products - for 2.1
1 parent c88089f commit e417b4b

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

app/code/Magento/Shipping/Controller/Adminhtml/Order/ShipmentLoader.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@
2727
* @method ShipmentLoader setTracking($tracking)
2828
* @method int getOrderId()
2929
* @method int getShipmentId()
30+
* @method array|null getShipment()
3031
* @method array getTracking()
3132
*/
3233
class ShipmentLoader extends DataObject
3334
{
34-
const SHIPMENT = 'shipment';
35-
3635
/**
3736
* @var ManagerInterface
3837
*/
@@ -136,7 +135,7 @@ public function load()
136135
return false;
137136
}
138137

139-
$shipmentItems = $this->getShipmentItems($this->getShipment());
138+
$shipmentItems = $this->getShipmentItems((array)$this->getShipment());
140139

141140
$shipment = $this->documentFactory->create(
142141
$order,
@@ -195,14 +194,4 @@ private function getShipmentItems(array $shipmentData)
195194
}
196195
return $shipmentItems;
197196
}
198-
199-
/**
200-
* Retrieve shipment.
201-
*
202-
* @return array
203-
*/
204-
public function getShipment()
205-
{
206-
return $this->getData(self::SHIPMENT) ?: [];
207-
}
208197
}

0 commit comments

Comments
 (0)