mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02:00
Fix DataList->column mutating underlying DataQuery
This commit is contained in:
parent
317cc788c2
commit
abd0f3fbf3
|
@ -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…
Reference in New Issue
Block a user