From 56a83ec579c685cde51837ded7e16dd1e76aae7f Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Tue, 3 May 2016 16:37:30 +0200 Subject: [PATCH] Parially revert 19b8532d55bb35d3d471bbe859e5ca080e85324f to ensure queries are not broken. --- CRM/Utils/Sort.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; } } -- 2.25.1