From a8cd39f4652f1e2ef4bbee07bef721c0115635ba Mon Sep 17 00:00:00 2001 From: Aakash Kumar Date: Mon, 5 Jun 2023 15:23:20 -0400 Subject: [PATCH] ACPT-1363: Fix Directory failures --- app/code/Magento/Directory/Model/Currency.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Directory/Model/Currency.php b/app/code/Magento/Directory/Model/Currency.php index a7637b83fa3f0..8782e022fe870 100644 --- a/app/code/Magento/Directory/Model/Currency.php +++ b/app/code/Magento/Directory/Model/Currency.php @@ -13,6 +13,7 @@ use Magento\Framework\Locale\Currency as LocaleCurrency; use Magento\Framework\Locale\ResolverInterface as LocalResolverInterface; use Magento\Framework\NumberFormatterFactory; +use Magento\Framework\ObjectManager\ResetAfterRequestInterface; use Magento\Framework\Serialize\Serializer\Json; /** @@ -23,7 +24,7 @@ * @SuppressWarnings(PHPMD.CouplingBetweenObjects) * @since 100.0.2 */ -class Currency extends \Magento\Framework\Model\AbstractModel +class Currency extends \Magento\Framework\Model\AbstractModel implements ResetAfterRequestInterface { /** * CONFIG path constants @@ -590,4 +591,12 @@ private function trimUnicodeDirectionMark($string) } return $string; } + + /** + * @inheritDoc + */ + public function _resetState(): void + { + $this->_rates = null; + } }