mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Create valid HTML attributes in GridFieldDefaultColumns->getColumnAttributes()
This commit is contained in:
parent
08b1a49c2b
commit
726b9cac46
@ -59,7 +59,7 @@ class GridFieldDefaultColumns implements GridField_ColumnProvider {
|
||||
}
|
||||
|
||||
public function getColumnAttributes($gridField, $item, $column) {
|
||||
return array('class' => 'col-' . $column);
|
||||
return array('class' => 'col-' . preg_replace('/[^\w]/', '-', $column));
|
||||
}
|
||||
|
||||
public function getColumnMetadata($gridField, $column) {
|
||||
|
Loading…
Reference in New Issue
Block a user