Skip to content

Commit

Permalink
Fixed issue related to 'product_attribute' attribute. Added condition…
Browse files Browse the repository at this point in the history
… for validating product attribute.
  • Loading branch information
GovindaSharma committed Jan 5, 2019
1 parent 523a83e commit 192a429
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function execute()
$attributeCode
);

if ($attribute->getId() && !$attributeId) {
if ($attribute->getId() && !$attributeId || $attributeCode === 'product_type') {
$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 192a429

Please sign in to comment.