// 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
+1 -2
View File
@@ -2073,7 +2073,7 @@ class AdminControllerCore extends Controller
foreach ($this->fields_list as $key => $array_value) foreach ($this->fields_list as $key => $array_value)
{ {
// Add it only if it is not already in $this->_select // 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; continue;
if (isset($array_value['filter_key'])) if (isset($array_value['filter_key']))
@@ -2791,4 +2791,3 @@ class AdminControllerCore extends Controller
return false; return false;
} }
} }