Skip to content

Commit eeb8ca9

Browse files
ENGCOM-4207: Fixed Issue #19891 ,Added checks of type_id #20115
- Merge Pull Request #20115 from GovindaSharma/magento2:2.3-DevelopPR5 - Merged commits: 1. b9d13e6
2 parents b2f1417 + b9d13e6 commit eeb8ca9

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function execute()
105105
$attributeCode
106106
);
107107

108-
if ($attribute->getId() && !$attributeId || $attributeCode === 'product_type') {
108+
if ($attribute->getId() && !$attributeId || $attributeCode === 'product_type' || $attributeCode === 'type_id') {
109109
$message = strlen($this->getRequest()->getParam('attribute_code'))
110110
? __('An attribute with this code already exists.')
111111
: __('An attribute with the same code (%1) already exists.', $attributeCode);

0 commit comments

Comments
 (0)