[*] BO #PSFV-94 : Added AdminCountriesController

This commit is contained in:
lLefevre
2011-10-20 09:32:13 +00:00
parent d21add0fed
commit 3c86e1ec5f
6 changed files with 868 additions and 413 deletions
+7
View File
@@ -538,6 +538,10 @@ class AdminControllerCore extends Controller
/* Table alias could be specified using a ! eg. alias!field */
$tmp_tab = explode('!', $key);
$key = (count($tmp_tab) > 1 ? $tmp_tab[1] : $tmp_tab[0]);
// init list declaration
$this->initList();
if (array_key_exists($key, $this->fieldsDisplay))
unset($this->context->cookie->$cookie_key);
}
@@ -746,6 +750,9 @@ class AdminControllerCore extends Controller
protected function filterToField($key, $filter)
{
// init list declaration
$this->initList();
foreach ($this->fieldsDisplay as $field)
if (array_key_exists('filter_key', $field) && $field['filter_key'] == $key)
return $field;