Skip to content

Commit

Permalink
ENGCOM-3360: [Forwardport] #17890: show correct text swatch values pe…
Browse files Browse the repository at this point in the history
…r store view #18988

 - Merge Pull Request #18988 from nmalevanec/magento2:2.3-develop-PR-port-17891
 - Merged commits:
   1. f359bbc
  • Loading branch information
magento-engcom-team committed Nov 1, 2018
2 parents da1a96c + f359bbc commit b3958d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Swatches/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ private function addFallbackOptions(array $fallbackValues, array $swatches)
&& $swatches[$optionId]['type'] === $optionsArray[$currentStoreId]['type']
) {
$swatches[$optionId] = $optionsArray[$currentStoreId];
} 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 b3958d3

Please sign in to comment.