// Add a multishop restriction on address in BO #PSTEST-1035
This commit is contained in:
@@ -68,8 +68,11 @@ class AdminAddressesControllerCore extends AdminController
|
||||
{
|
||||
$this->_select = 'cl.`name` as country';
|
||||
$this->_join = '
|
||||
LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (cl.`id_country` = a.`id_country` AND cl.`id_lang` = '.(int)$this->context->language->id.')';
|
||||
$this->_where = 'AND a.id_customer != 0';
|
||||
LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (cl.`id_country` = a.`id_country` AND cl.`id_lang` = '.(int)$this->context->language->id.')
|
||||
LEFT JOIN `'._DB_PREFIX_.'customer` c ON a.id_customer = c.id_customer
|
||||
';
|
||||
|
||||
$this->_where = 'AND a.id_customer != 0 '.Shop::addSqlRestriction(Shop::SHARE_CUSTOMER, 'c');
|
||||
|
||||
return parent::renderList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user