Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
+1
-1
@@ -1523,7 +1523,7 @@ class ToolsCore
|
||||
|
||||
if (self::$_cache_nb_media_servers && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1)))
|
||||
return constant('_MEDIA_SERVER_'.$id_media_server.'_');
|
||||
return Tools::getHttpHost();
|
||||
return Tools::getShopDomain();
|
||||
}
|
||||
|
||||
public static function generateHtaccess($path = null, $rewrite_settings = null, $cache_control = null, $specific = '', $disable_multiviews = null, $medias = false, $disable_modsec = null)
|
||||
|
||||
@@ -479,8 +479,8 @@ class StockManagerCore implements StockManagerInterface
|
||||
$query->where('o.valid = 1 OR (os.id_order_state != '.(int)Configuration::get('PS_OS_ERROR').'
|
||||
AND os.id_order_state != '.(int)Configuration::get('PS_OS_CANCELED').')');
|
||||
$query->groupBy('od.id_order_detail');
|
||||
//if (count($ids_warehouse))
|
||||
//$query->where('od.id_warehouse IN('.implode(', ', $ids_warehouse).')');
|
||||
if (count($ids_warehouse))
|
||||
$query->where('od.id_warehouse IN('.implode(', ', $ids_warehouse).')');
|
||||
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query);
|
||||
$client_orders_qty = 0;
|
||||
if (count($res))
|
||||
@@ -658,4 +658,4 @@ class StockManagerCore implements StockManagerInterface
|
||||
return $stocks;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user