module-shipper icon indicating copy to clipboard operation
module-shipper copied to clipboard

StockHandlerFactory check for Inventory module usage fails if module is installed and disabled

Open steven-hoffman-jomashop opened this issue 4 years ago • 2 comments

For https://github.com/shipperhq/module-shipper/blob/20.50.0/src/Model/Carrier/Processor/StockHandlerFactory.php. The isAdobeMSIInstalled and isLegacyStockRegistryInstalled can return incorrect results if the module is installed and disabled.

This can be easily fixed by adding a Magento\Framework\Module\Manager::isEnabled check on the relevant modules. (Magento_InventoryCatalog & Magento_CatalogInventory)

steven-hoffman-jomashop avatar Jul 29 '22 15:07 steven-hoffman-jomashop

Hi Steven,

Thank you for contacting us regarding this issue. We see that you are correct, this can return a positive result for a disabled module. We have passed this to our development team for impact assessment.

shqsupport avatar Jul 29 '22 16:07 shqsupport

@steven-hoffman-jomashop Thanks for raising this. We've released version 20.50.1 which addresses this. Please update and re-test

wsajosh avatar Aug 09 '22 11:08 wsajosh