Skip to content

Commit c966ecb

Browse files
author
Viktor Tymchynskyi
committed
Merge remote-tracking branch 'origin/MAGETWO-49517' into MPI-BUGFIXES
2 parents 890d726 + 3ec9211 commit c966ecb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,9 +1123,8 @@ protected function _parseResponse($response)
11231123
throw new \Magento\Framework\Exception\LocalizedException($responseError);
11241124
}
11251125
$this->debugErrors($this->_errors);
1126-
1127-
return false;
11281126
}
1127+
$result->append($this->getErrorMessage());
11291128
}
11301129

11311130
return $result;

app/code/Magento/Fedex/Model/Carrier.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,10 @@ protected function _getQuotes()
501501
// make general request for all methods
502502
$response = $this->_doRatesRequest(self::RATE_REQUEST_GENERAL);
503503
$preparedGeneral = $this->_prepareRateResponse($response);
504-
if (!$preparedGeneral->getError() || $this->_result->getError() && $preparedGeneral->getError()) {
504+
if (!$preparedGeneral->getError()
505+
|| $this->_result->getError() && $preparedGeneral->getError()
506+
|| empty($this->_result->getAllRates())
507+
) {
505508
$this->_result->append($preparedGeneral);
506509
}
507510

0 commit comments

Comments
 (0)