Skip to content

Commit 5e6801e

Browse files
committed
MAGETWO-95426: Unable to set default option for swatch attribute
1 parent 8722fa6 commit 5e6801e

File tree

1 file changed

+4
-0
lines changed
  • dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/CatalogProductAttribute

1 file changed

+4
-0
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/CatalogProductAttribute/Curl.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ public function persist(FixtureInterface $fixture = null)
144144
*/
145145
protected function changeStructureOfTheData(array $data): array
146146
{
147+
if (!isset($data['options'])) {
148+
return $data;
149+
}
150+
147151
$serializedOptions = $this->getSerializeOptions($data['options']);
148152
if ($serializedOptions) {
149153
$data['serialized_options'] = $serializedOptions;

0 commit comments

Comments
 (0)