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
  • Loading branch information
ishakhsuvarov authored Jan 20, 2018
2 parents 78028f0 + 225e6d1 commit 48dd554
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 48dd554

Please sign in to comment.