mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: SSF-124 linking to the correct page edit form in the list view
This commit is contained in:
parent
4a36b1e490
commit
93f1696a66
@ -578,9 +578,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
$gridFieldConfig = GridFieldConfig::create()->addComponents(
|
||||
new GridFieldSortableHeader(),
|
||||
new GridFieldDataColumns(),
|
||||
new GridFieldPaginator(15),
|
||||
new GridFieldEditButton(),
|
||||
new GridFieldDetailForm()
|
||||
new GridFieldPaginator(15)
|
||||
);
|
||||
$gridField = new GridField('Page','Pages', $list, $gridFieldConfig);
|
||||
|
||||
@ -602,7 +600,10 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
$gridField->setFieldCasting(array(
|
||||
'Created' => 'Date->Ago',
|
||||
'LastEdited' => 'Date->Ago',
|
||||
|
||||
));
|
||||
|
||||
$gridField->setFieldFormatting(array(
|
||||
'getTreeTitle' => '<a href=\"admin/page/edit/show/$ID\">$value</a>'
|
||||
));
|
||||
|
||||
$listview = new Form(
|
||||
|
Loading…
Reference in New Issue
Block a user