Skip to content
Snippets Groups Projects
Commit 225e6d1e authored by Ievgen Shakhsuvarov's avatar Ievgen Shakhsuvarov
Browse files

MAGETWO-86886: magento/magento2#12993: Type error in Cart/Totals [Forwardport...

MAGETWO-86886: magento/magento2#12993: Type error in Cart/Totals [Forwardport for public PR#9647] #1186

 - Merge Pull Request magento-engcom/magento2ce#1186 from p-bystritsky/magento2:ISSUE-12993
 - Merged commits:
   1. 69cad441
   2. dc641384
parents 83a9b9c9 dc641384
Branches
No related merge requests found
...@@ -10,6 +10,7 @@ use Magento\Quote\Api\CartRepositoryInterface; ...@@ -10,6 +10,7 @@ use Magento\Quote\Api\CartRepositoryInterface;
use Magento\Quote\Api\CartTotalRepositoryInterface; use Magento\Quote\Api\CartTotalRepositoryInterface;
use Magento\Catalog\Helper\Product\ConfigurationPool; use Magento\Catalog\Helper\Product\ConfigurationPool;
use Magento\Framework\Api\DataObjectHelper; use Magento\Framework\Api\DataObjectHelper;
use Magento\Framework\Api\ExtensibleDataInterface;
use Magento\Quote\Model\Cart\Totals\ItemConverter; use Magento\Quote\Model\Cart\Totals\ItemConverter;
use Magento\Quote\Api\CouponManagementInterface; use Magento\Quote\Api\CouponManagementInterface;
...@@ -94,6 +95,7 @@ class CartTotalRepository implements CartTotalRepositoryInterface ...@@ -94,6 +95,7 @@ class CartTotalRepository implements CartTotalRepositoryInterface
$addressTotalsData = $quote->getShippingAddress()->getData(); $addressTotalsData = $quote->getShippingAddress()->getData();
$addressTotals = $quote->getShippingAddress()->getTotals(); $addressTotals = $quote->getShippingAddress()->getTotals();
} }
unset($addressTotalsData[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]);
/** @var \Magento\Quote\Api\Data\TotalsInterface $quoteTotals */ /** @var \Magento\Quote\Api\Data\TotalsInterface $quoteTotals */
$quoteTotals = $this->totalsFactory->create(); $quoteTotals = $this->totalsFactory->create();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment