From be03687dda6470863fbe270cad0f64f4ee27fdb1 Mon Sep 17 00:00:00 2001 From: Elton Mota Date: Tue, 24 Sep 2024 13:07:58 -0300 Subject: [PATCH] Issue #123 - Fixing The attribute set ID is incorrect on module install process (#124) Co-authored-by: Elton Mota --- Setup/UpgradeData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setup/UpgradeData.php b/Setup/UpgradeData.php index 66385b03..59f3be85 100644 --- a/Setup/UpgradeData.php +++ b/Setup/UpgradeData.php @@ -98,7 +98,7 @@ private function removeProductAttributesAndSets() } $entityTypeId = $categorySetup->getEntityTypeId(Product::ENTITY); - $attributeSetId = $categorySetup->getAttributeSetId($entityTypeId, self::VINDI_PLANOS); + $attributeSetId = $categorySetup->getAttributeSet($entityTypeId, self::VINDI_PLANOS, 'attribute_set_id'); if ($attributeSetId) { $attributeGroupId = $categorySetup->getAttributeGroupId($entityTypeId, $attributeSetId, self::VINDI_PLAN_SETTINGS); if ($attributeGroupId) {