Skip to content

Commit 6d90348

Browse files
new field added in fieldset.xml
1 parent f9adaee commit 6d90348

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/code/Magento/Quote/Model/Quote/Item/ToOrderItem.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ public function convert($item, $data = [])
6464
$item
6565
);
6666
if ($item instanceof \Magento\Quote\Model\Quote\Address\Item) {
67-
$orderItemData['quote_item_id'] = $item->getQuoteItemId();
67+
$data = array_merge(
68+
$data,
69+
$this->objectCopyService->getDataFromFieldset(
70+
'quote_convert_item',
71+
'to_order_item_id',
72+
$item
73+
)
74+
);
6875
}
6976
if (!$item->getNoDiscount()) {
7077
$data = array_merge(

app/code/Magento/Quote/etc/fieldset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@
205205
<field name="qty">
206206
<aspect name="to_order_item" targetField="qty_ordered" />
207207
</field>
208+
<field name="quote_item_id">
209+
<aspect name="to_order_item_id" targetField="quote_item_id" />
210+
</field>
208211
<field name="id">
209212
<aspect name="to_order_item" targetField="quote_item_id" />
210213
</field>

0 commit comments

Comments
 (0)