Skip to content

Commit

Permalink
Merged revisions 43321 via svnmerge from
Browse files Browse the repository at this point in the history
svn://svn.silverstripe.com/silverstripe/modules/cms/branches/2.1.0-rc3oriwave2

........
  r43321 | hsmith | 2007-10-11 17:50:49 +1300 (Thu, 11 Oct 2007) | 2 lines
  
  Added LeftAndMainSubsites->augmentNewSiteTreeItem that allows extensions of LeftAndMain to provide the current SubsiteID for the new item.
  CMSMain->getNewItem now calls $this->extend('augmentNewSiteTreeItem', $newItem);
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@49765 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
Sam Minnee committed Feb 19, 2008
1 parent d8adda9 commit a5b8e4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/CMSMain.php
Expand Up @@ -450,6 +450,9 @@ public function getNewItem($id, $setID = true) {

if($setID) $newItem->ID = $id;

# Some modules like subsites add extra fields that need to be set when the new item is created
$this->extend('augmentNewSiteTreeItem', $newItem);

return $newItem;
}

Expand Down

0 comments on commit a5b8e4f

Please sign in to comment.