mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #216 from dnadesign/2.1
FIX: Ensure Version gridfield has correct field formatting and variables
This commit is contained in:
commit
63b6fa567a
@ -820,12 +820,12 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
new GridFieldDataColumns(),
|
||||
new GridFieldPaginator(30)
|
||||
);
|
||||
|
||||
$versionsGridFieldConfig->getComponentByType('GridFieldDataColumns')
|
||||
->setDisplayFields(Config::inst()->get('DMSDocument_versions', 'display_fields'))
|
||||
->setFieldFormatting(
|
||||
array(
|
||||
'FilenameWithoutID' => '<a target="_blank" class="file-url" href="$Link">'
|
||||
. '$FilenameWithoutID</a>'
|
||||
'FilenameWithoutID' => '<a target=\"_blank\" class=\"file-url\" href=\"$Link\">$FilenameWithoutID</a>'
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user