mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Fix sort values not being populated.
This commit is contained in:
parent
1bc24992c6
commit
aa09d48112
@ -239,7 +239,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
$list = clone $list;
|
||||
$field = $this->getSortField();
|
||||
$table = $this->getSortTable($list);
|
||||
$clause = $this->getSortTableClauseForIds($list, 0);
|
||||
$clause = sprintf('"%s"."%s" = 0', $table, $this->getSortField());
|
||||
|
||||
foreach($list->where($clause)->column('ID') as $id) {
|
||||
$max = DB::query(sprintf('SELECT MAX("%s") + 1 FROM "%s"', $field, $table));
|
||||
|
Loading…
Reference in New Issue
Block a user