Skip to content

Commit 11264e1

Browse files
committed
ACP2E-412: Cant link configurable options with REST to product created on Backend
1 parent e4b2c11 commit 11264e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/OptionRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function save($sku, OptionInterface $option)
238238

239239
if (!$option->getId()) {
240240
throw new CouldNotSaveException(__('An error occurred while saving the option. Please try to save again.'));
241-
}
241+
}echo $option->getId()."ooo".$product->getTypeId();
242242
return $option->getId()."ooo".$product->getTypeId();
243243
}
244244

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/OptionRepositoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ public function testAdd(): void
192192
];
193193
/** @var string $result */
194194
$result = $this->_webApiCall($serviceInfo, ['sku' => $productSku, 'option' => $option]);
195+
echo "-------------------->>>>>>>".$result;
195196
$arr = explode("000", $result);
196197
$this->assertEquals('configurable', $arr[1]);
197198
$productRepository1 = Bootstrap::getObjectManager()->create(ProductRepository::class);

0 commit comments

Comments
 (0)