mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Check from ExtraFields in getSortTableClauseForIds
if no extrafields are on the many_many relationship error generated same fix as chillu on getSortTable
This commit is contained in:
parent
1a521a3ce0
commit
5ddbf9cd43
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user