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 7ce5efb + 73b499d commit e140116Copy full SHA for e140116
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php
@@ -100,7 +100,7 @@ public function execute()
100
$attributeCode
101
);
102
103
- if ($attribute->getId() && !$attributeId) {
+ if ($attribute->getId() && !$attributeId || $attributeCode === 'product_type') {
104
$message = strlen($this->getRequest()->getParam('attribute_code'))
105
? __('An attribute with this code already exists.')
106
: __('An attribute with the same code (%1) already exists.', $attributeCode);
0 commit comments