mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
GridFieldOrderableRows PostgreSQL compatibility
This commit is contained in:
parent
302f7c0dc1
commit
4015d3355f
@ -190,7 +190,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
$sortterm = $this->extraSortFields.', ';
|
||||
}
|
||||
}
|
||||
$sortterm .= $this->getSortTable($list).'.'.$this->getSortField();
|
||||
$sortterm .= '"'.$this->getSortTable($list).'"."'.$this->getSortField().'"';
|
||||
return $list->sort($sortterm);
|
||||
} else {
|
||||
return $list;
|
||||
@ -226,7 +226,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
$sortterm = $this->extraSortFields.', ';
|
||||
}
|
||||
}
|
||||
$sortterm .= $this->getSortTable($list).'.'.$field;
|
||||
$sortterm .= '"'.$this->getSortTable($list).'"."'.$field.'"';
|
||||
$items = $list->filter('ID', $ids)->sort($sortterm);
|
||||
|
||||
// Ensure that each provided ID corresponded to an actual object.
|
||||
|
Loading…
Reference in New Issue
Block a user