Skip to content

Commit

Permalink
ENGCOM-4207: Fixed Issue #19891 ,Added checks of type_id #20115
Browse files Browse the repository at this point in the history
 - Merge Pull Request #20115 from GovindaSharma/magento2:2.3-DevelopPR5
 - Merged commits:
   1. b9d13e6
  • Loading branch information
magento-engcom-team committed Feb 11, 2019
2 parents b2f1417 + b9d13e6 commit eeb8ca9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function execute()
$attributeCode
);

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

0 comments on commit eeb8ca9

Please sign in to comment.