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 ) {