Skip to content

Commit fd48f8a

Browse files
author
Oleksii Korshenko
authored
MAGETWO-86576: 11828 Fix issue with swatch colour block not showing in admin panel once colour selected (PHP7.1.x issue). #13101
2 parents 77fb6e5 + 11b3d90 commit fd48f8a

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)