Skip to content

Commit

Permalink
#17890: show correct text swatch values per store view
Browse files Browse the repository at this point in the history
  • Loading branch information
magicaner committed Sep 2, 2018
1 parent 19bec6f commit 4164200
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/Magento/Swatches/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,10 @@ private function addFallbackOptions(array $fallbackValues, array $swatches)
&& $swatches[$optionId]['type'] === $optionsArray[$currentStoreId]['type']
) {
$swatches[$optionId] = $optionsArray[$currentStoreId];
} else {
if (isset($optionsArray[self::DEFAULT_STORE_ID])) {
$swatches[$optionId] = $optionsArray[self::DEFAULT_STORE_ID];
}
} elseif (isset($optionsArray[$currentStoreId])) {
$swatches[$optionId] = $optionsArray[$currentStoreId];
} elseif (isset($optionsArray[self::DEFAULT_STORE_ID])) {
$swatches[$optionId] = $optionsArray[self::DEFAULT_STORE_ID];
}
}

Expand Down

0 comments on commit 4164200

Please sign in to comment.