mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUG Fix pages level up link
Fixes https://github.com/silverstripe/silverstripe-framework/issues/5400
This commit is contained in:
parent
685a72d470
commit
18939157f0
@ -859,9 +859,11 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
new GridFieldPaginator(self::config()->page_length)
|
new GridFieldPaginator(self::config()->page_length)
|
||||||
);
|
);
|
||||||
if($parentID){
|
if($parentID){
|
||||||
|
$linkSpec = $this->Link();
|
||||||
|
$linkSpec = $linkSpec . (strstr($linkSpec, '?') ? '&' : '?') . 'ParentID=%d&view=list';
|
||||||
$gridFieldConfig->addComponent(
|
$gridFieldConfig->addComponent(
|
||||||
GridFieldLevelup::create($parentID)
|
GridFieldLevelup::create($parentID)
|
||||||
->setLinkSpec('?ParentID=%d&view=list')
|
->setLinkSpec($linkSpec)
|
||||||
->setAttributes(array('data-pjax' => 'ListViewForm,Breadcrumbs'))
|
->setAttributes(array('data-pjax' => 'ListViewForm,Breadcrumbs'))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user