diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index cc86d5234..c91102bb6 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -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; } -} - +} \ No newline at end of file