Skip to content

Commit 227acb8

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #17476: [Backport] Convert to string $option->getValue, in order to be compared with oth� (by @mage2pratik) Fixed GitHub Issues: - #15028: Configurable product addtocart with restAPI not working as expected (reported by @yspeedwicked) has been fixed in #17476 by @mage2pratik in 2.1-develop branch Related commits: 1. 4ac06ed
2 parents 72b6452 + 921c149 commit 227acb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/Quote/Item/CartItemProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function convertToBuyRequest(CartItemInterface $cartItem)
5959
if (is_array($options)) {
6060
$requestData = [];
6161
foreach ($options as $option) {
62-
$requestData['super_attribute'][$option->getOptionId()] = $option->getOptionValue();
62+
$requestData['super_attribute'][$option->getOptionId()] = (string) $option->getOptionValue();
6363
}
6464
return $this->objectFactory->create($requestData);
6565
}

0 commit comments

Comments
 (0)