From 16506521b55c41846e4d37e7cdf4a3ba05660a21 Mon Sep 17 00:00:00 2001 From: Evgeniy Kalashnikov Date: Fri, 28 Apr 2017 13:05:00 +0400 Subject: [PATCH] Fix multiple deletion # Case Use command ``` $ magento module:uninstall Prefix_Module1 Prefix_Module2 ``` # Problem Deletion scripts do not work --- setup/src/Magento/Setup/Model/UninstallCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/src/Magento/Setup/Model/UninstallCollector.php b/setup/src/Magento/Setup/Model/UninstallCollector.php index 20388e433e9de..2e22913975fef 100644 --- a/setup/src/Magento/Setup/Model/UninstallCollector.php +++ b/setup/src/Magento/Setup/Model/UninstallCollector.php @@ -56,7 +56,7 @@ public function collectUninstall($filterModules = []) $setup = $this->dataSetupFactory->create(); $result = $setup->getConnection()->select()->from($setup->getTable('setup_module'), ['module']); if (isset($filterModules) && sizeof($filterModules) > 0) { - $result->where('module in( ? )', implode(',', $filterModules)); + $result->where('module in( ? )', $filterModules); } // go through modules foreach ($setup->getConnection()->fetchAll($result) as $row) {