From dcc83f8ff381de9fffb357d01e5572b8345d6851 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 21:14:17 +0000 Subject: [PATCH] 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 --- code/NewsletterAdmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/NewsletterAdmin.php b/code/NewsletterAdmin.php index 76f6b33c..68d895ec 100755 --- a/code/NewsletterAdmin.php +++ b/code/NewsletterAdmin.php @@ -615,8 +615,8 @@ JS; $newsletterType->GroupID = $newGroup->ID; $newsletterType->write(); - // return the contents of the site tree - return $newsletterType; + // BUGFIX: Return only the ID of the new newsletter type + return $newsletterType->ID; } private function newDraft( $parentID ) {