mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
FIX: Escape double quotes so Field can be safely eval()’d
This commit is contained in:
parent
eb85a86296
commit
42275f5d13
@ -820,12 +820,12 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
|||||||
new GridFieldDataColumns(),
|
new GridFieldDataColumns(),
|
||||||
new GridFieldPaginator(30)
|
new GridFieldPaginator(30)
|
||||||
);
|
);
|
||||||
|
|
||||||
$versionsGridFieldConfig->getComponentByType('GridFieldDataColumns')
|
$versionsGridFieldConfig->getComponentByType('GridFieldDataColumns')
|
||||||
->setDisplayFields(Config::inst()->get('DMSDocument_versions', 'display_fields'))
|
->setDisplayFields(Config::inst()->get('DMSDocument_versions', 'display_fields'))
|
||||||
->setFieldFormatting(
|
->setFieldFormatting(
|
||||||
array(
|
array(
|
||||||
'FilenameWithoutID' => '<a target="_blank" class="file-url" href="$Link">'
|
'FilenameWithoutID' => '<a target=\"_blank\" class=\"file-url\" href=\"$Link\">$FilenameWithoutID</a>'
|
||||||
. '$FilenameWithoutID</a>'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user