//Fixed bug delete duplicate method initList and initOptions

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9499 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-10-20 13:22:30 +00:00
parent 71dcca6695
commit fcf0a4c5cf
3 changed files with 5 additions and 11 deletions
-8
View File
@@ -539,9 +539,6 @@ class AdminControllerCore extends Controller
$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);
}
@@ -750,9 +747,6 @@ 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;
@@ -1969,8 +1963,6 @@ EOF;
$languages = Language::getLanguages(false);
// init options declaration
$this->initOptions();
foreach ($this->options as $category => $category_data)
{
$fields = $category_data['fields'];