// Fix admin listing on some tab

This commit is contained in:
Rémi Gaillard
2012-11-23 14:30:00 +01:00
parent 541fb6b675
commit ac5e64e7a7

View File

@@ -2073,7 +2073,7 @@ class AdminControllerCore extends Controller
foreach ($this->fields_list as $key => $array_value)
{
// Add it only if it is not already in $this->_select
if (isset($this->_select) && preg_match('/'.preg_quote($key, '/').'`?\s*,/', $this->_select))
if (isset($this->_select) && preg_match('/[\s]`?'.preg_quote($key, '/').'`?\s*,/', $this->_select))
continue;
if (isset($array_value['filter_key']))
@@ -2790,5 +2790,4 @@ class AdminControllerCore extends Controller
// No content, return false
return false;
}
}
}