MINOR: Document config system bug hack

This commit is contained in:
Andrew O'Neil 2012-08-21 11:42:04 +12:00
parent 5150e66de3
commit 725da88e75

View File

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