Skip to content

Commit ded8aa9

Browse files
Merge forwardport of #13101 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/13101.patch (created by @chris-pook) based on commit(s): 1. ee5fc2e Fixed GitHub Issues in 2.3-develop branch: - #11828: Visual Swatches not showing swatch color in admin (reported by @lee586)
2 parents 17da65c + 1fdee00 commit ded8aa9

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Swatches/Block/Adminhtml/Attribute/Edit/Options

1 file changed

+3
-3
lines changed

app/code/Magento/Swatches/Block/Adminhtml/Attribute/Edit/Options/Visual.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ public function getJsonConfig()
8484
* Parse swatch labels for template
8585
*
8686
* @codeCoverageIgnore
87-
* @param null $swatchStoreValue
88-
* @return string
87+
* @param null|array $swatchStoreValue
88+
* @return null|array
8989
*/
9090
protected function reformatSwatchLabels($swatchStoreValue = null)
9191
{
9292
if ($swatchStoreValue === null) {
9393
return;
9494
}
95-
$newSwatch = '';
95+
$newSwatch = [];
9696
foreach ($swatchStoreValue as $key => $value) {
9797
if ($value[0] == '#') {
9898
$newSwatch[$key] = 'background: '.$value;

0 commit comments

Comments
 (0)