[-] BO: Fix #PSCFV-6367 don't display the payment modules on BackOffice orders if they are disabled

This commit is contained in:
Rémi Gaillard
2013-01-18 17:01:47 +01:00
parent c0e46bbf07
commit 0d058a5d50
+1 -1
View File
@@ -1285,7 +1285,7 @@ class AdminOrdersControllerCore extends AdminController
foreach (PaymentModule::getInstalledPaymentModules() as $payment)
{
$module = Module::getInstanceByName($payment['name']);
if (Validate::isLoadedObject($module))
if (Validate::isLoadedObject($module) && $module->active)
$payment_methods[] = $module->displayName;
}