elofgren: BUGIX: Fix trac ticket: '#28: Fix problems with adding a new newsletter type and trying to edit its title' by making the id of the new newsletter type be returned instead of the id of Session::get('currentPage')

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41949 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 21:14:17 +00:00
parent 9d0cf998e1
commit dcc83f8ff3

View File

@ -615,8 +615,8 @@ JS;
$newsletterType->GroupID = $newGroup->ID; $newsletterType->GroupID = $newGroup->ID;
$newsletterType->write(); $newsletterType->write();
// return the contents of the site tree // BUGFIX: Return only the ID of the new newsletter type
return $newsletterType; return $newsletterType->ID;
} }
private function newDraft( $parentID ) { private function newDraft( $parentID ) {