mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Merge pull request #61 from adam-stead/master
Check from ExtraFields in getSortTableClauseForIds
This commit is contained in:
commit
7bf3cf9a31
@ -281,7 +281,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
|||||||
$foreignKey = $list->getForeignKey();
|
$foreignKey = $list->getForeignKey();
|
||||||
$foreignID = $list->getForeignID();
|
$foreignID = $list->getForeignID();
|
||||||
|
|
||||||
if(array_key_exists($this->getSortField(), $extra)) {
|
if($extra && array_key_exists($this->getSortField(), $extra)) {
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'"%s" %s AND "%s" = %d',
|
'"%s" %s AND "%s" = %d',
|
||||||
$key,
|
$key,
|
||||||
|
Loading…
Reference in New Issue
Block a user