[-] BO : Fixed a bug which did not permitted to found a customer in the creation of order in the back office
This commit is contained in:
@@ -700,6 +700,8 @@ class ShopCore extends ObjectModel
|
|||||||
*/
|
*/
|
||||||
public static function addSqlRestriction($share = false, $alias = null)
|
public static function addSqlRestriction($share = false, $alias = null)
|
||||||
{
|
{
|
||||||
|
if (!Shop::isFeatureActive())
|
||||||
|
return;
|
||||||
if ($alias)
|
if ($alias)
|
||||||
$alias .= '.';
|
$alias .= '.';
|
||||||
|
|
||||||
@@ -745,6 +747,8 @@ class ShopCore extends ObjectModel
|
|||||||
*/
|
*/
|
||||||
public static function addSqlRestrictionOnLang($alias = null, $id_shop = null)
|
public static function addSqlRestrictionOnLang($alias = null, $id_shop = null)
|
||||||
{
|
{
|
||||||
|
if (!Shop::isFeatureActive())
|
||||||
|
return;
|
||||||
if (is_null($id_shop))
|
if (is_null($id_shop))
|
||||||
$id_shop = Context::getContext()->shop->id;
|
$id_shop = Context::getContext()->shop->id;
|
||||||
return ' AND '.(($alias) ? $alias.'.' : '').'id_shop = '.$id_shop.' ';
|
return ' AND '.(($alias) ? $alias.'.' : '').'id_shop = '.$id_shop.' ';
|
||||||
|
|||||||
Reference in New Issue
Block a user