Skip to content

Commit 6152f87

Browse files
committed
MAGETWO-66417: Issue/6706 #6707
- Merge Pull Request #6707 from PascalBrouwers/magento2:issue/6706
2 parents 2613378 + 7f84cb5 commit 6152f87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ protected function prepareOptionIds(array $optionsArray)
186186
{
187187
if (isset($optionsArray['value']) && is_array($optionsArray['value'])) {
188188
foreach (array_keys($optionsArray['value']) as $optionId) {
189-
if (isset($optionsArray['delete']) && $optionsArray['delete'][$optionId] == 1) {
189+
if (isset($optionsArray['delete']) && isset($optionsArray['delete'][$optionId])
190+
&& $optionsArray['delete'][$optionId] == 1
191+
) {
190192
unset($optionsArray['value'][$optionId]);
191193
}
192194
}

0 commit comments

Comments
 (0)