Permalink
Browse files

MINOR Using new DataList API for DependentPages in SiteTree->getCMSFi…

…elds()
  • Loading branch information...
1 parent 8da0def commit 4140ddad5e09ba8e4b9a57c57dfc53ec4ec10908 @chillu chillu committed Jan 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 code/model/SiteTree.php
View
@@ -1795,10 +1795,9 @@ function getCMSFields() {
$dependentNote = new LiteralField('DependentNote', '<p>' . _t('SiteTree.DEPENDENT_NOTE', 'The following pages depend on this page. This includes virtual pages, redirector pages, and pages with content links.') . '</p>');
$dependentTable = new TableListField(
'DependentPages',
- 'SiteTree',
+ $this->DependentPages(),
$dependentColumns
);
- $dependentTable->setCustomSourceItems($this->DependentPages());
$dependentTable->setFieldFormatting(array(
'Title' => '<a href=\"admin/show/$ID\">$Title</a>',
'AbsoluteLink' => '<a href=\"$value\">$value</a>',

0 comments on commit 4140dda

Please sign in to comment.