Merge pull request #61 from adam-stead/master

Check from ExtraFields in getSortTableClauseForIds
This commit is contained in:
Andrew Short 2014-07-09 22:49:12 +10:00
commit 7bf3cf9a31

View File

@ -281,7 +281,7 @@ class GridFieldOrderableRows extends RequestHandler implements
$foreignKey = $list->getForeignKey();
$foreignID = $list->getForeignID();
if(array_key_exists($this->getSortField(), $extra)) {
if($extra && array_key_exists($this->getSortField(), $extra)) {
return sprintf(
'"%s" %s AND "%s" = %d',
$key,