Skip to content

Commit

Permalink
MAGETWO-86886: #12993: Type error in Cart/Totals [Forwardport for pub…
Browse files Browse the repository at this point in the history
…lic PR#9647] #1186

 - Merge Pull Request magento-engcom/magento2ce#1186 from p-bystritsky/magento2:ISSUE-12993
 - Merged commits:
   1. 69cad44
   2. dc64138
  • Loading branch information
ishakhsuvarov committed Jan 19, 2018
2 parents 83a9b9c + dc64138 commit 225e6d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Quote/Model/Cart/CartTotalRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Magento\Quote\Api\CartTotalRepositoryInterface;
use Magento\Catalog\Helper\Product\ConfigurationPool;
use Magento\Framework\Api\DataObjectHelper;
use Magento\Framework\Api\ExtensibleDataInterface;
use Magento\Quote\Model\Cart\Totals\ItemConverter;
use Magento\Quote\Api\CouponManagementInterface;

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 225e6d1

Please sign in to comment.