Merge pull request #517 from axometeam/patch-4

[*] BO : AdminControllers Keep "active" filter on pagination
This commit is contained in:
Gregory Roussac
2013-07-12 02:07:51 -07:00
+1 -1
View File
@@ -535,7 +535,7 @@ class HelperListCore extends Helper
{ {
if (!isset($params['type'])) if (!isset($params['type']))
$params['type'] = 'text'; $params['type'] = 'text';
$value = Context::getContext()->cookie->{$prefix.$this->table.'Filter_'.(array_key_exists('filter_key', $params) ? $params['filter_key'] : $key)}; $value = Context::getContext()->cookie->{$prefix.$this->table.'Filter_'.(array_key_exists('filter_key', $params) && $key != 'active' ? $params['filter_key'] : $key)};
switch ($params['type']) switch ($params['type'])
{ {
case 'bool': case 'bool':