diff --git a/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php b/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php index 72b07518190ac..8b096b52168de 100644 --- a/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php +++ b/app/code/Magento/Swatches/Model/Plugin/EavAttribute.php @@ -174,7 +174,7 @@ protected function prepareOptionIds(array $optionsArray) { if (isset($optionsArray['value']) && is_array($optionsArray['value'])) { foreach (array_keys($optionsArray['value']) as $optionId) { - if (isset($optionsArray['delete']) && $optionsArray['delete'][$optionId] == 1) { + if (isset($optionsArray['delete'][$optionId]) & $optionsArray['delete'][$optionId]) { unset($optionsArray['value'][$optionId]); } }