Skip to content

Commit 48dd554

Browse files
MAGETWO-86886: #12993: Type error in Cart/Totals [Forwardport for public PR#9647] #1186
2 parents 78028f0 + 225e6d1 commit 48dd554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Quote/Model/Cart/CartTotalRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Quote\Api\CartTotalRepositoryInterface;
1111
use Magento\Catalog\Helper\Product\ConfigurationPool;
1212
use Magento\Framework\Api\DataObjectHelper;
13+
use Magento\Framework\Api\ExtensibleDataInterface;
1314
use Magento\Quote\Model\Cart\Totals\ItemConverter;
1415
use Magento\Quote\Api\CouponManagementInterface;
1516

@@ -94,6 +95,7 @@ public function get($cartId)
9495
$addressTotalsData = $quote->getShippingAddress()->getData();
9596
$addressTotals = $quote->getShippingAddress()->getTotals();
9697
}
98+
unset($addressTotalsData[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]);
9799

98100
/** @var \Magento\Quote\Api\Data\TotalsInterface $quoteTotals */
99101
$quoteTotals = $this->totalsFactory->create();

0 commit comments

Comments
 (0)