Skip to content

Commit f359bbc

Browse files
magicanernmalevanec
authored andcommitted
#17890: show correct text swatch values per store view
1 parent da1a96c commit f359bbc

File tree

1 file changed

+2
-0
lines changed
  • app/code/Magento/Swatches/Helper

1 file changed

+2
-0
lines changed

app/code/Magento/Swatches/Helper/Data.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,8 @@ private function addFallbackOptions(array $fallbackValues, array $swatches)
488488
&& $swatches[$optionId]['type'] === $optionsArray[$currentStoreId]['type']
489489
) {
490490
$swatches[$optionId] = $optionsArray[$currentStoreId];
491+
} elseif (isset($optionsArray[$currentStoreId])) {
492+
$swatches[$optionId] = $optionsArray[$currentStoreId];
491493
} elseif (isset($optionsArray[self::DEFAULT_STORE_ID])) {
492494
$swatches[$optionId] = $optionsArray[self::DEFAULT_STORE_ID];
493495
}

0 commit comments

Comments
 (0)