[-] BO: Fix id_shop for configuration variables in global context for orders

This commit is contained in:
Rémi Gaillard
2013-02-04 16:05:01 +01:00
parent 7bd44ca1b1
commit 1dbf4855cc
3 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ class OrderHistoryCore extends ObjectModel
// if the product is a pack, we restock every products in the pack using the last negative stock mvts
if (Pack::isPack($product['product_id']))
{
$pack_products = Pack::getItems($product['product_id'], Configuration::get('PS_LANG_DEFAULT'));
$pack_products = Pack::getItems($product['product_id'], Configuration::get('PS_LANG_DEFAULT', null, null, $order->id_shop));
foreach ($pack_products as $pack_product)
{
if ($pack_product->advanced_stock_management == 1)