Skip to content

Commit 8e0c8a6

Browse files
author
Stanislav Idolov
committed
MAGETWO-50025: Extention attributes errors for CartItemInterface #3640
1 parent 33ffcd3 commit 8e0c8a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Quote/Model/Cart/Totals/ItemConverter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Catalog\Helper\Product\ConfigurationPool;
99
use Magento\Framework\Event\ManagerInterface as EventManager;
1010
use Magento\Framework\Api\DataObjectHelper;
11+
use Magento\Framework\Api\ExtensibleDataInterface;
1112

1213
/**
1314
* Cart item totals converter.
@@ -68,6 +69,8 @@ public function modelToDataObject($item)
6869
$this->eventManager->dispatch('items_additional_data', ['item' => $item]);
6970
$items = $item->toArray();
7071
$items['options'] = $this->getFormattedOptionValue($item);
72+
unset($items[ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY]);
73+
7174
$itemsData = $this->totalsItemFactory->create();
7275
$this->dataObjectHelper->populateWithArray(
7376
$itemsData,

0 commit comments

Comments
 (0)