Skip to content

Commit

Permalink
ENGCOM-3910: Order shipping method bug #20381
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Feb 12, 2019
2 parents d4ac222 + 6b01abb commit fb59ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -1311,12 +1311,12 @@ public function getTrackingNumbers()
* Retrieve shipping method
*
* @param bool $asObject return carrier code and shipping method data as object
* @return string|\Magento\Framework\DataObject
* @return string|null|\Magento\Framework\DataObject
*/
public function getShippingMethod($asObject = false)
{
$shippingMethod = parent::getShippingMethod();
if (!$asObject) {
if (!$asObject || !$shippingMethod) {
return $shippingMethod;
} else {
list($carrierCode, $method) = explode('_', $shippingMethod, 2);
Expand Down

0 comments on commit fb59ad1

Please sign in to comment.