mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Fixed "Pages" breadcrumbs not to include root node, since its already in the tree panel
This commit is contained in:
parent
112a3f5f81
commit
44a4e8a840
@ -9,4 +9,11 @@ class CMSPageEditController extends CMSMain {
|
|||||||
static $url_rule = '/$Action/$ID/$OtherID';
|
static $url_rule = '/$Action/$ID/$OtherID';
|
||||||
static $url_priority = 41;
|
static $url_priority = 41;
|
||||||
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
||||||
|
|
||||||
|
public function Breadcrumbs($unlinked = false) {
|
||||||
|
$crumbs = parent::Breadcrumbs($unlinked);
|
||||||
|
// Remove "root" element, as its already shown in the tree panel
|
||||||
|
$crumbs->shift();
|
||||||
|
return $crumbs;
|
||||||
|
}
|
||||||
}
|
}
|
@ -439,4 +439,11 @@ class CMSPageHistoryController extends CMSMain {
|
|||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function Breadcrumbs($unlinked = false) {
|
||||||
|
$crumbs = parent::Breadcrumbs($unlinked);
|
||||||
|
// Remove "root" element, as its already shown in the tree panel
|
||||||
|
$crumbs->shift();
|
||||||
|
return $crumbs;
|
||||||
|
}
|
||||||
}
|
}
|
@ -15,4 +15,11 @@ class CMSPageSettingsController extends CMSMain {
|
|||||||
|
|
||||||
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function Breadcrumbs($unlinked = false) {
|
||||||
|
$crumbs = parent::Breadcrumbs($unlinked);
|
||||||
|
// Remove "root" element, as its already shown in the tree panel
|
||||||
|
$crumbs->shift();
|
||||||
|
return $crumbs;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user