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 014408c commit 5bbfc98Copy full SHA for 5bbfc98
app/code/Magento/Eav/Model/Entity/Attribute/OptionManagement.php
@@ -154,6 +154,7 @@ private function saveOption(
154
foreach ($existingLabels as $storeId => $labelText) {
155
$options['value'][$optionId][$storeId] = $labelText;
156
}
157
+
158
if (is_array($option->getStoreLabels())) {
159
foreach ($option->getStoreLabels() as $label) {
160
$options['value'][$optionId][$label->getStoreId()] = $label->getLabel();
@@ -162,6 +163,7 @@ private function saveOption(
162
163
if ($option->getIsDefault()) {
164
$attribute->setDefault([$optionId]);
165
166
167
$attribute->setOption($options);
168
try {
169
$this->resourceModel->save($attribute);
0 commit comments