From e441f5cdf16c3c010145570e31cc9ca4d3fb8e64 Mon Sep 17 00:00:00 2001 From: aNiassy Date: Mon, 21 May 2012 18:34:36 +0000 Subject: [PATCH] [-] BO : Fixed a bug which did not permitted to found a customer in the creation of order in the back office --- classes/shop/Shop.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index 51ea83c40..2be28a2a5 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -700,6 +700,8 @@ class ShopCore extends ObjectModel */ public static function addSqlRestriction($share = false, $alias = null) { + if (!Shop::isFeatureActive()) + return; if ($alias) $alias .= '.'; @@ -745,6 +747,8 @@ class ShopCore extends ObjectModel */ public static function addSqlRestrictionOnLang($alias = null, $id_shop = null) { + if (!Shop::isFeatureActive()) + return; if (is_null($id_shop)) $id_shop = Context::getContext()->shop->id; return ' AND '.(($alias) ? $alias.'.' : '').'id_shop = '.$id_shop.' ';