Skip to content

Commit

Permalink
MAGETWO-52079: [GITHUB] Order Repository GetList Method always return…
Browse files Browse the repository at this point in the history
…s the same shipping address for all orders #4019
  • Loading branch information
Mulderua committed May 4, 2016
1 parent b1dd1c6 commit f3e1524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Sales/Model/OrderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private function setShippingAssignments(OrderInterface $order)
$extensionAttributes = $order->getExtensionAttributes();

if ($extensionAttributes === null) {
$extensionAttributes = $this->getOrderExtensionDependencyFactory()->create();
$extensionAttributes = $this->getOrderExtensionFactory()->create();
} elseif ($extensionAttributes->getShippingAssignments() !== null) {
return;
}
Expand All @@ -189,7 +189,7 @@ private function setShippingAssignments(OrderInterface $order)
* @return OrderExtension
* @deprecated
*/
private function getOrderExtensionDependencyFactory()
private function getOrderExtensionFactory()
{
if (!$this->orderExtensionFactory instanceof OrderExtensionFactory) {
$this->orderExtensionFactory = \Magento\Framework\App\ObjectManager::getInstance()->get(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testGetList()

$extensionAttributes = $this->getMock(
'\Magento\Sales\Api\Data\OrderExtension',
[],
['getShippingAssignments'],
[],
'',
false
Expand Down

0 comments on commit f3e1524

Please sign in to comment.