Skip to content

Commit

Permalink
Update getCustomer method in order class
Browse files Browse the repository at this point in the history
Fix static test
  • Loading branch information
ihor-sviziev authored Feb 6, 2020
1 parent 427a4ad commit f8bcd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ public function getTrackingNumbers()
*/
public function getShippingMethod($asObject = false)
{
$shippingMethod = parent::getShippingMethod();
$shippingMethod = $this->getData('shipping_method');
if (!$asObject || !$shippingMethod) {
return $shippingMethod;
} else {
Expand Down

0 comments on commit f8bcd47

Please sign in to comment.