mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-07 18:21:23 +02:00
260a9e230c
This solves a bugfix when calling singleton($className)->summaryFields() and Versioned kicks back. It is needed to by the GridField functionality to get default columns to show. This is due to DataExtension calls ClassName::extraStatics() when calling ::load_extra_statics() statically, we need to pass in class and extension.
11 lines
198 B
PHP
11 lines
198 B
PHP
<?php
|
|
class i18nTestModuleExtension extends DataExtension {
|
|
function extraStatics($class=null, $extension=null) {
|
|
return array(
|
|
'db' => array(
|
|
'MyExtraField' => 'Varchar'
|
|
)
|
|
);
|
|
}
|
|
}
|
|
?>
|