Skip to content
Snippets Groups Projects
Commit fd48f8a8 authored by Oleksii Korshenko's avatar Oleksii Korshenko Committed by GitHub
Browse files

MAGETWO-86576: 11828 Fix issue with swatch colour block not showing in admin...

MAGETWO-86576: 11828 Fix issue with swatch colour block not showing in admin panel once colour selected (PHP7.1.x issue). #13101
parents 77fb6e5a 11b3d907
No related merge requests found
...@@ -84,15 +84,15 @@ class Visual extends AbstractSwatch ...@@ -84,15 +84,15 @@ class Visual extends AbstractSwatch
* Parse swatch labels for template * Parse swatch labels for template
* *
* @codeCoverageIgnore * @codeCoverageIgnore
* @param null $swatchStoreValue * @param null|array $swatchStoreValue
* @return string * @return null|array
*/ */
protected function reformatSwatchLabels($swatchStoreValue = null) protected function reformatSwatchLabels($swatchStoreValue = null)
{ {
if ($swatchStoreValue === null) { if ($swatchStoreValue === null) {
return; return;
} }
$newSwatch = ''; $newSwatch = [];
foreach ($swatchStoreValue as $key => $value) { foreach ($swatchStoreValue as $key => $value) {
if ($value[0] == '#') { if ($value[0] == '#') {
$newSwatch[$key] = 'background: '.$value; $newSwatch[$key] = 'background: '.$value;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment