Clone lists for 3.0 compatibility. Closes #1.

This commit is contained in:
Andrew Short 2013-01-10 22:26:14 +11:00
parent 1c17f8e523
commit 57572def57
2 changed files with 2 additions and 1 deletions

View File

@ -244,6 +244,7 @@ class GridFieldOrderableRows extends RequestHandler implements
}
protected function populateSortValues(DataList $list) {
$list = clone $list;
$field = $this->getSortField();
$table = $this->getSortTable($list);
$clause = $this->getSortTableClauseForIds($list, 0);

View File

@ -11,6 +11,6 @@
}
],
"require": {
"silverstripe/framework": ">=3.1"
"silverstripe/framework": "3.*
}
}