MINOR Create valid HTML attributes in GridFieldDefaultColumns->getColumnAttributes()

This commit is contained in:
Ingo Schommer 2012-02-29 09:53:22 +01:00
parent 08b1a49c2b
commit 726b9cac46

View File

@ -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) {