mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged r77016 from sapphire/branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77017 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8d4e1dd6e0
commit
4ded1f4930
@ -1131,14 +1131,14 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
if(isset($linkedPages)) {
|
||||
foreach($linkedPages as $linkedPage) {
|
||||
$parentPage = $linkedPage->Parent;
|
||||
$parentPageTitle = $parentPage->Title;
|
||||
|
||||
if($parentPage->ID) {
|
||||
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/show/$linkedPage->ID\">{$parentPage->Title}</a>";
|
||||
} else {
|
||||
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/show/$linkedPage->ID\">" .
|
||||
_t('SiteTree.TOPLEVEL', 'Site Content (Top Level)') .
|
||||
"</a>";
|
||||
if($parentPage) {
|
||||
if($parentPage->ID) {
|
||||
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/show/$linkedPage->ID\">{$parentPage->Title}</a>";
|
||||
} else {
|
||||
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/show/$linkedPage->ID\">" .
|
||||
_t('SiteTree.TOPLEVEL', 'Site Content (Top Level)') .
|
||||
"</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1414,6 +1414,8 @@ class TableListField_ItemRequest extends RequestHandler {
|
||||
function __construct($ctf, $itemID) {
|
||||
$this->ctf = $ctf;
|
||||
$this->itemID = $itemID;
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function delete() {
|
||||
|
Loading…
Reference in New Issue
Block a user