We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68e9313 + 6152f87 commit 5f6f12aCopy full SHA for 5f6f12a
app/code/Magento/Swatches/Model/Plugin/EavAttribute.php
@@ -186,7 +186,9 @@ protected function prepareOptionIds(array $optionsArray)
186
{
187
if (isset($optionsArray['value']) && is_array($optionsArray['value'])) {
188
foreach (array_keys($optionsArray['value']) as $optionId) {
189
- if (isset($optionsArray['delete']) && $optionsArray['delete'][$optionId] == 1) {
+ if (isset($optionsArray['delete']) && isset($optionsArray['delete'][$optionId])
190
+ && $optionsArray['delete'][$optionId] == 1
191
+ ) {
192
unset($optionsArray['value'][$optionId]);
193
}
194
0 commit comments