paytrail / paytrail-for-adobe-commerce

Paytrail payment service for Adobe Commerce (formerly known as Magento 2)
https://www.paytrail.com
MIT License
2 stars 7 forks source link

Product edit page: "componentType" configuration parameter is required for the "" component #81

Closed harrilehtisaari-crasman closed 7 months ago

harrilehtisaari-crasman commented 8 months ago

Describe the bug If recurring_payment_schedule attribute is removed from attribute sets AND Paytrail recurring payments is set to NO, Magento will produce an error on product edit page:

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): The "componentType" configuration parameter is required for the "" component.

To Reproduce Either delete attribute recurring_payment_schedule or remove it from attribute sets and set "Enabled Recurring payment" to NO. Then try to edit any product.

Expected behavior Expected not to have an error on product edit page.

Additional context Not a critical error and easy enough to circumvent (just don't delete the attribute and keep it in attribute sets), but still an issue that shouldn't happen. Also filing this bug report just in case someone else stumbles upon it.

bartoszkaluzny-solteq commented 8 months ago

@harrilehtisaari-crasman Thank you for reporting the error. I was able to reproduce this bug and fix will be released with 2.0.5 module version.

bartoszkaluzny-solteq commented 7 months ago

Fix is released with 2.1.0 module version.