Skip to content

Commit d572cfc

Browse files
committed
ACP2E-4061: Issue with Updated Orders with Configurable Options Using REST API
- fix PAT failure
1 parent 527b046 commit d572cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Plugin/Model/ResourceModel/Order/Relation/AddExistingItemProductOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function beforeProcessRelation(Relation $subject, AbstractModel $object):
7979
if ($object instanceof OrderInterface && $object->getId() && $object->getItems()) {
8080
foreach ($object->getItems() as $item) {
8181
if ($item->getItemId()) {
82-
$productOptions = $this->getExistingOrderItemProductOptions($item->getItemId());
82+
$productOptions = $this->getExistingOrderItemProductOptions((int)$item->getItemId());
8383
if (count($productOptions)) {
8484
$item->setProductOptions($productOptions);
8585
}

0 commit comments

Comments
 (0)