We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 056a02a commit b93b095Copy full SHA for b93b095
app/code/Magento/ConfigurableProduct/Model/OptionRepository.php
@@ -134,7 +134,7 @@ public function getList($sku)
134
{
135
$product = $this->getProduct($sku);
136
137
- return $this->optionLoader->load($product);
+ return (array) $this->optionLoader->load($product);
138
}
139
140
/**
@@ -149,7 +149,7 @@ public function delete(OptionInterface $option)
149
$this->configurableTypeResource->saveProducts($product, []);
150
} catch (\Exception $exception) {
151
throw new StateException(
152
- __('Cannot delete variations from product: %1', $option->getProductId())
+ __('Cannot delete variations from product: %1', $entityId)
153
);
154
155
try {
0 commit comments