FIX to be an actual working bit of code...

This commit is contained in:
Marcus Nyeholt 2015-09-03 12:28:25 +10:00
parent d9182a65d2
commit b3b4ea7168
1 changed files with 3 additions and 4 deletions

View File

@ -272,10 +272,9 @@ class GridFieldOrderableRows extends RequestHandler implements
protected function sortTerm($list) {
// need to handle ANSI escaping for DBs differently from other list types
if ($list instanceof DataList) {
$sortterm .= '"'.$this->getSortTable($list).'"."'.$this->getSortField().'"';
} else {
$sortterm .= $this->getSortTable($list).'.'.$this->getSortField();
}
return '"'.$this->getSortTable($list).'"."'.$this->getSortField().'"';
}
return $this->getSortTable($list).'.'.$this->getSortField();
}