mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Ensure that columns are unique within a gridfield
This commit is contained in:
parent
0991477e5a
commit
3644110349
@ -33,7 +33,12 @@ class GridFieldDataColumns implements GridField_ColumnProvider {
|
||||
*/
|
||||
public function augmentColumns($gridField, &$columns) {
|
||||
$baseColumns = array_keys($this->getDisplayFields($gridField));
|
||||
foreach($baseColumns as $col) $columns[] = $col;
|
||||
|
||||
foreach($baseColumns as $col) {
|
||||
$columns[] = $col;
|
||||
}
|
||||
|
||||
$columns = array_unique($columns);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user