mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
9d0cf998e1
commit
dcc83f8ff3
@ -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 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user