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 8d4d0c0 commit c2a5e57Copy full SHA for c2a5e57
app/code/Magento/Catalog/Controller/Adminhtml/Product/Action/Attribute/Validate.php
@@ -56,8 +56,12 @@ public function execute()
56
unset($attributesData[$attributeCode]);
57
continue;
58
}
59
- $data->setData($attributeCode, $value);
60
- $attribute->getBackend()->validate($data);
+
+ $isChanged = (bool)$this->getRequest()->getPost('toggle_' . $attributeCode);
61
+ if ($isChanged) {
62
+ $data->setData($attributeCode, $value);
63
+ $attribute->getBackend()->validate($data);
64
+ }
65
66
67
} catch (\Magento\Eav\Model\Entity\Attribute\Exception $e) {
0 commit comments