From 57572def57d240628bff7a2f95580500a5f7464b Mon Sep 17 00:00:00 2001 From: Andrew Short Date: Thu, 10 Jan 2013 22:26:14 +1100 Subject: [PATCH] Clone lists for 3.0 compatibility. Closes #1. --- code/GridFieldOrderableRows.php | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/GridFieldOrderableRows.php b/code/GridFieldOrderableRows.php index c4845bd..9a4d0cc 100644 --- a/code/GridFieldOrderableRows.php +++ b/code/GridFieldOrderableRows.php @@ -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); diff --git a/composer.json b/composer.json index 9a8b564..c658178 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,6 @@ } ], "require": { - "silverstripe/framework": ">=3.1" + "silverstripe/framework": "3.* } }