Skip to content

Commit

Permalink
MAGETWO-50025: Extention attributes errors for CartItemInterface #3640
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov committed Mar 10, 2016
1 parent 33ffcd3 commit 8e0c8a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/Magento/Quote/Model/Cart/Totals/ItemConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Magento\Catalog\Helper\Product\ConfigurationPool;
use Magento\Framework\Event\ManagerInterface as EventManager;
use Magento\Framework\Api\DataObjectHelper;
use Magento\Framework\Api\ExtensibleDataInterface;

/**
* Cart item totals converter.
Expand Down Expand Up @@ -68,6 +69,8 @@ public function modelToDataObject($item)
$this->eventManager->dispatch('items_additional_data', ['item' => $item]);
$items = $item->toArray();
$items['options'] = $this->getFormattedOptionValue($item);
unset($items[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]);

$itemsData = $this->totalsItemFactory->create();
$this->dataObjectHelper->populateWithArray(
$itemsData,
Expand Down

0 comments on commit 8e0c8a6

Please sign in to comment.