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 2eeb633 commit 3bab714Copy full SHA for 3bab714
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php
@@ -110,8 +110,8 @@ public function execute()
110
$options
111
);
112
$valueOptions = (isset($options['value']) && is_array($options['value'])) ? $options['value'] : [];
113
- foreach ($valueOptions as $key => $valueOption) {
114
- if (isset($options['delete'][$key]) && $options['delete'][$key]) {
+ foreach (array_keys($valueOptions) as $key) {
+ if (!empty($options['delete'][$key])) {
115
unset($valueOptions[$key]);
116
}
117
0 commit comments