Skip to content

Commit

Permalink
Fixed issue #19891
Browse files Browse the repository at this point in the history
Fixed issue #19891 added check of attribute type_id
  • Loading branch information
Govind Sharma authored Jan 8, 2019
1 parent c307d25 commit b9d13e6
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 b9d13e6

Please sign in to comment.