Skip to content

Commit

Permalink
issue #20380 fixed for 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-rajawat committed Jan 31, 2019
1 parent 78182ac commit c495f31
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 @@ -1298,12 +1298,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 c495f31

Please sign in to comment.