[-] BO: Stock should not appears on product listing when stock management is disabled #PSCFV-8207

This commit is contained in:
Rémi Gaillard
2013-06-19 11:35:24 +02:00
parent 73800bad09
commit 68540f1887
2 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1300,7 +1300,7 @@ class AdminOrdersControllerCore extends AdminController
// display warning if there are products out of stock
$display_out_of_stock_warning = false;
$current_order_state = $order->getCurrentOrderState();
if (configuration::get('PS_STOCK_MANAGEMENT') && (!Validate::isLoadedObject($current_order_state) || ($current_order_state->delivery != 1 && $current_order_state->shipped != 1)))
if (Configuration::get('PS_STOCK_MANAGEMENT') && (!Validate::isLoadedObject($current_order_state) || ($current_order_state->delivery != 1 && $current_order_state->shipped != 1)))
$display_out_of_stock_warning = true;
// products current stock (from stock_available)