Parially revert 19b8532d55bb35d3d471bbe859e5ca080e85324f to ensure queries are not...
authorMattias Michaux <mattias.michaux@gmail.com>
Tue, 3 May 2016 14:37:30 +0000 (16:37 +0200)
committerMattias Michaux <mattias.michaux@gmail.com>
Tue, 3 May 2016 14:37:30 +0000 (16:37 +0200)
CRM/Utils/Sort.php

index e20e75d44296f9aff8f3168f4b1a362f21a3019a..2b5765f23598eac92f0a8d6f4c53435fc312ab54 100644 (file)
@@ -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';
     }
   }