Skip to content

Commit a8cc25c

Browse files
committed
AC-15208: Attribute Option Label Gets Overwritten When Updating Store Labels
Fix WebAPI test failures
1 parent 8604312 commit a8cc25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/OptionManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function saveOption(
153153

154154
$existingLabels = $this->optionResource->getStoreLabelsByOptionId((int)$optionId);
155155
foreach ($existingLabels as $storeId => $labelText) {
156-
$options['value'][$optionId][$storeId] = $labelText;
156+
$options['value'][$optionId][$storeId] ??= $labelText;
157157
}
158158

159159
if (is_array($option->getStoreLabels())) {

0 commit comments

Comments
 (0)