mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
MINOR: Document config system bug hack
This commit is contained in:
parent
5150e66de3
commit
725da88e75
@ -23,6 +23,7 @@ class DMSSiteTreeExtension extends DataExtension {
|
||||
//GridFieldLevelup::create($folder->ID)->setLinkSpec('admin/assets/show/%d')
|
||||
);
|
||||
|
||||
// HACK: Create a singleton of DMSDocument to ensure extensions are applied before we try to get display fields.
|
||||
singleton('DMSDocument');
|
||||
$gridFieldConfig->getComponentByType('GridFieldDataColumns')->setDisplayFields(Config::inst()->get('DMSDocument', 'display_fields'))
|
||||
->setFieldCasting(array('LastChanged'=>"Date->Ago"))
|
||||
|
Loading…
Reference in New Issue
Block a user