From: Mattias Michaux Date: Tue, 3 May 2016 14:37:30 +0000 (+0200) Subject: Parially revert 19b8532d55bb35d3d471bbe859e5ca080e85324f to ensure queries are not... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=56a83ec579c685cde51837ded7e16dd1e76aae7f;p=civicrm-core.git Parially revert 19b8532d55bb35d3d471bbe859e5ca080e85324f to ensure queries are not broken. --- diff --git a/CRM/Utils/Sort.php b/CRM/Utils/Sort.php index e20e75d442..2b5765f235 100644 --- a/CRM/Utils/Sort.php +++ b/CRM/Utils/Sort.php @@ -152,11 +152,11 @@ class CRM_Utils_Sort { $this->_vars[$this->_currentSortID]['direction'] == self::DONTCARE ) { $this->_vars[$this->_currentSortID]['name'] = str_replace(' ', '_', $this->_vars[$this->_currentSortID]['name']); - return CRM_Utils_Type::escape($this->_vars[$this->_currentSortID]['name'], 'MysqlColumnName') . ' asc'; + return $this->_vars[$this->_currentSortID]['name'] . ' asc'; } else { $this->_vars[$this->_currentSortID]['name'] = str_replace(' ', '_', $this->_vars[$this->_currentSortID]['name']); - return CRM_Utils_Type::escape($this->_vars[$this->_currentSortID]['name'], 'MysqlColumnName') . ' desc'; + return $this->_vars[$this->_currentSortID]['name'] . ' desc'; } }