Skip to content

Commit 0de8d8e

Browse files
Yaroslav OnischenkoSergey Nosov
authored andcommitted
MAGETWO-49558: SOAP API adding product attribute type text swatch or visual swatch will not work
1 parent d74b4d8 commit 0de8d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Model/Plugin/EavAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ protected function prepareOptionIds(array $optionsArray)
174174
{
175175
if (isset($optionsArray['value']) && is_array($optionsArray['value'])) {
176176
foreach (array_keys($optionsArray['value']) as $optionId) {
177-
if ($optionsArray['delete'][$optionId] == 1) {
177+
if (isset($optionsArray['delete']) && $optionsArray['delete'][$optionId] == 1) {
178178
unset($optionsArray['value'][$optionId]);
179179
}
180180
}

0 commit comments

Comments
 (0)