Skip to content
4 changes: 2 additions & 2 deletions app/code/Magento/Eav/Model/AttributeManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ public function unassign($attributeSetId, $attributeCode)
/**
* {@inheritdoc}
*/
public function getAttributes($entityType, $attributeSetId)
public function getAttributes($entityTypeCode, $attributeSetId)
{
/** @var \Magento\Eav\Api\Data\AttributeSetInterface $attributeSet */
$attributeSet = $this->setRepository->get($attributeSetId);
$requiredEntityTypeId = $this->eavConfig->getEntityType($entityType)->getId();
$requiredEntityTypeId = $this->eavConfig->getEntityType($entityTypeCode)->getId();
if (!$attributeSet->getAttributeSetId() || $attributeSet->getEntityTypeId() != $requiredEntityTypeId) {
throw NoSuchEntityException::singleField('attributeSetId', $attributeSetId);
}
Expand Down