[-] BO: Fix some listing filters bug

This commit is contained in:
rGaillard
2012-02-09 16:56:17 +00:00
parent 4d05bf8fa7
commit b1ddbcbba1
12 changed files with 32 additions and 20 deletions
@@ -48,6 +48,10 @@ class AdminAddressesControllerCore extends AdminController
if (!Tools::getValue('realedit'))
$this->deleted = true;
$countries = Country::getCountries($this->context->language->id);
foreach ($countries as $country)
$this->countries_array[$country['id_country']] = $country['name'];
$this->fieldsDisplay = array(
'id_address' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
'firstname' => array('title' => $this->l('First name'), 'width' => 120, 'filter_key' => 'a!firstname'),
@@ -67,10 +71,6 @@ class AdminAddressesControllerCore extends AdminController
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';
$countries = Country::getCountries($this->context->language->id);
foreach ($countries as $country)
$this->countries_array[$country['id_country']] = $country['name'];
return parent::renderList();
}