From aa535ea5d4bf78915bddd4387a9d3c4b39943eea Mon Sep 17 00:00:00 2001 From: Eero Kuusela Date: Tue, 16 May 2017 15:49:12 +0300 Subject: [PATCH] Fix for #9646 Allow extension attributes for quote addresses. See a fix for a similar issue here: https://github.com/magento/magento2/commit/8e0c8a67653cbd92df3c65f1cc3d96c8313df72e --- app/code/Magento/Quote/Model/Cart/CartTotalRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/Magento/Quote/Model/Cart/CartTotalRepository.php b/app/code/Magento/Quote/Model/Cart/CartTotalRepository.php index 270fac24d24a0..4ca738d777aac 100644 --- a/app/code/Magento/Quote/Model/Cart/CartTotalRepository.php +++ b/app/code/Magento/Quote/Model/Cart/CartTotalRepository.php @@ -12,6 +12,7 @@ use Magento\Framework\Api\DataObjectHelper; use Magento\Quote\Model\Cart\Totals\ItemConverter; use Magento\Quote\Api\CouponManagementInterface; +use Magento\Framework\Api\ExtensibleDataInterface; /** * Cart totals data object. @@ -94,6 +95,7 @@ public function get($cartId) $addressTotalsData = $quote->getShippingAddress()->getData(); $addressTotals = $quote->getShippingAddress()->getTotals(); } + unset($addressTotalsData[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]); /** @var \Magento\Quote\Api\Data\TotalsInterface $quoteTotals */ $quoteTotals = $this->totalsFactory->create();