mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #9645 from MasonD/datalist-column-bug
Fix #9641 DataList->column mutating underlying DataQuery
This commit is contained in:
commit
009ae3ee4f
@ -1014,7 +1014,8 @@ class DataList extends ViewableData implements SS_List, Filterable, Sortable, Li
|
|||||||
*/
|
*/
|
||||||
public function column($colName = "ID")
|
public function column($colName = "ID")
|
||||||
{
|
{
|
||||||
return $this->dataQuery->distinct(false)->column($colName);
|
$dataQuery = clone $this->dataQuery;
|
||||||
|
return $dataQuery->distinct(false)->column($colName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user