Official OpenMage LTS codebase | Migrate easily from Magento Community Edition in minutes! Download the source code for free or contribute to OpenMage LTS | Security vulnerability patches, bug fixes, performance improvements and more.
After switching to UPS REST API, no rates were available for Cyprus. For Cyprus only one service is available on our UPS contract. In this case the response from UPS is:
After switching to UPS REST API, no rates were available for Cyprus. For Cyprus only one service is available on our UPS contract. In this case the response from UPS is:
Instead of:
So when there is only one service, an object is returned instead of an array.
UPS::_parseRestResponse
doesn't handle this case properly.Can be fixed like this: