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.
1 parent 159ad64 commit 7f84cb5Copy full SHA for 7f84cb5
app/code/Magento/Swatches/Model/Plugin/EavAttribute.php
@@ -174,7 +174,9 @@ protected function prepareOptionIds(array $optionsArray)
174
{
175
if (isset($optionsArray['value']) && is_array($optionsArray['value'])) {
176
foreach (array_keys($optionsArray['value']) as $optionId) {
177
- if (isset($optionsArray['delete']) && isset($optionsArray['delete'][$optionId]) && $optionsArray['delete'][$optionId] == 1) {
+ if (isset($optionsArray['delete']) && isset($optionsArray['delete'][$optionId])
178
+ && $optionsArray['delete'][$optionId] == 1
179
+ ) {
180
unset($optionsArray['value'][$optionId]);
181
}
182
0 commit comments